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

项目:DecompiledMinecraft    文件:RenderGuardian.java   
public RenderGuardian(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelGuardian(), 0.5F);
    this.field_177115_a = ((ModelGuardian)this.mainModel).func_178706_a();
}
项目:BaseClient    文件:RenderGuardian.java   
public RenderGuardian(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelGuardian(), 0.5F);
    this.field_177115_a = ((ModelGuardian)this.mainModel).func_178706_a();
}
项目:BaseClient    文件:RenderGuardian.java   
public RenderGuardian(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelGuardian(), 0.5F);
    this.field_177115_a = ((ModelGuardian)this.mainModel).func_178706_a();
}
项目:Backmemed    文件:ModelAdapterGuardian.java   
public ModelBase makeModel()
{
    return new ModelGuardian();
}
项目:Backmemed    文件:ModelAdapterGuardian.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelGuardian))
    {
        return null;
    }
    else
    {
        ModelGuardian modelguardian = (ModelGuardian)model;

        if (modelPart.equals("body"))
        {
            return (ModelRenderer)Reflector.getFieldValue(modelguardian, Reflector.ModelGuardian_body);
        }
        else if (modelPart.equals("eye"))
        {
            return (ModelRenderer)Reflector.getFieldValue(modelguardian, Reflector.ModelGuardian_eye);
        }
        else
        {
            String s = "spine";

            if (modelPart.startsWith(s))
            {
                ModelRenderer[] amodelrenderer1 = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelguardian, Reflector.ModelGuardian_spines));

                if (amodelrenderer1 == null)
                {
                    return null;
                }
                else
                {
                    String s3 = modelPart.substring(s.length());
                    int j = Config.parseInt(s3, -1);
                    --j;
                    return j >= 0 && j < amodelrenderer1.length ? amodelrenderer1[j] : null;
                }
            }
            else
            {
                String s1 = "tail";

                if (modelPart.startsWith(s1))
                {
                    ModelRenderer[] amodelrenderer = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelguardian, Reflector.ModelGuardian_tail));

                    if (amodelrenderer == null)
                    {
                        return null;
                    }
                    else
                    {
                        String s2 = modelPart.substring(s1.length());
                        int i = Config.parseInt(s2, -1);
                        --i;
                        return i >= 0 && i < amodelrenderer.length ? amodelrenderer[i] : null;
                    }
                }
                else
                {
                    return null;
                }
            }
        }
    }
}
项目:Backmemed    文件:RenderGuardian.java   
public RenderGuardian(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelGuardian(), 0.5F);
}
项目:CustomWorldGen    文件:RenderGuardian.java   
public RenderGuardian(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelGuardian(), 0.5F);
    this.lastModelVersion = ((ModelGuardian)this.mainModel).getModelVersion();
}
项目:ExpandedRailsMod    文件:RenderGuardian.java   
public RenderGuardian(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelGuardian(), 0.5F);
    this.lastModelVersion = ((ModelGuardian)this.mainModel).getModelVersion();
}