Java 类net.minecraft.client.model.ModelBanner 实例源码

项目:Backmemed    文件:ModelAdapterBanner.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelBanner))
    {
        return null;
    }
    else
    {
        ModelBanner modelbanner = (ModelBanner)model;
        return modelPart.equals("slate") ? modelbanner.bannerSlate : (modelPart.equals("stand") ? modelbanner.bannerStand : (modelPart.equals("top") ? modelbanner.bannerTop : null));
    }
}
项目:Backmemed    文件:ModelAdapterBanner.java   
public ModelBase makeModel()
{
    return new ModelBanner();
}