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

项目:Backmemed    文件:ModelAdapterVex.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelVex))
    {
        return null;
    }
    else
    {
        ModelRenderer modelrenderer = super.getModelRenderer(model, modelPart);

        if (modelrenderer != null)
        {
            return modelrenderer;
        }
        else
        {
            ModelVex modelvex = (ModelVex)model;
            return modelPart.equals("left_wing") ? (ModelRenderer)Reflector.getFieldValue(modelvex, Reflector.ModelVex_leftWing) : (modelPart.equals("right_wing") ? (ModelRenderer)Reflector.getFieldValue(modelvex, Reflector.ModelVex_rightWing) : null);
        }
    }
}
项目:Backmemed    文件:RenderVex.java   
/**
 * Renders the desired {@code T} type Entity.
 */
public void doRender(EntityVex entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    int i = ((ModelVex)this.mainModel).func_191228_a();

    if (i != this.field_191345_k)
    {
        this.mainModel = new ModelVex();
        this.field_191345_k = i;
    }

    super.doRender(entity, x, y, z, entityYaw, partialTicks);
}
项目:harshencastle    文件:ModelSoulPart.java   
public int getModelVersion()
{
    return new ModelVex().getModelVersion();
}
项目:Backmemed    文件:ModelAdapterVex.java   
public ModelBase makeModel()
{
    return new ModelVex();
}
项目:Backmemed    文件:RenderVex.java   
public RenderVex(RenderManager p_i47190_1_)
{
    super(p_i47190_1_, new ModelVex(), 0.3F);
    this.field_191345_k = ((ModelVex)this.mainModel).func_191228_a();
}