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

项目:UsefulPets    文件:SilverfishModel.java   
public SilverfishModel()
{
    normal = new ModelSilverfish();

    body = ReflectionHelper.getPrivateValue( ModelSilverfish.class, this, 0 );
    wings = ReflectionHelper.getPrivateValue( ModelSilverfish.class, this, 1 );
       body[ 3 ].rotateAngleX = body[ 4 ].rotateAngleX = body[ 5 ].rotateAngleX = body[ 6 ].rotateAngleX = 3.14f / 2;
       body[ 3 ].rotationPointZ = body[ 4 ].rotationPointZ = body[ 5 ].rotationPointZ = body[ 6 ].rotationPointZ = 0;
       body[ 6 ].offsetY = 0;
       body[ 5 ].offsetY = -0.1f;
       body[ 4 ].rotateAngleX *= -0.7f;
       body[ 4 ].offsetZ = 0.06f;
       body[ 4 ].offsetY = -0.2f;
       body[ 3 ].rotateAngleX *= -0.45f;
       body[ 3 ].offsetY = -0.3f;
       body[ 3 ].offsetZ = -0.05f;
       wings[ 1 ].rotateAngleX = body[ 5 ].rotateAngleX*1.4f;
       wings[ 1 ].rotationPointZ = body[ 5 ].rotationPointZ;
       wings[ 1 ].offsetY = body[ 4 ].offsetX;
       wings[ 1 ].offsetZ = -0.05f;
}
项目:DecompiledMinecraft    文件:RenderSilverfish.java   
public RenderSilverfish(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSilverfish(), 0.3F);
}
项目:BaseClient    文件:RenderSilverfish.java   
public RenderSilverfish(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSilverfish(), 0.3F);
}
项目:BaseClient    文件:RenderSilverfish.java   
public RenderSilverfish(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSilverfish(), 0.3F);
}
项目:Backmemed    文件:ModelAdapterSilverfish.java   
public ModelBase makeModel()
{
    return new ModelSilverfish();
}
项目:Backmemed    文件:ModelAdapterSilverfish.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelSilverfish))
    {
        return null;
    }
    else
    {
        ModelSilverfish modelsilverfish = (ModelSilverfish)model;
        String s = "body";

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

            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 = "wing";

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

                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    文件:RenderSilverfish.java   
public RenderSilverfish(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSilverfish(), 0.3F);
}
项目:CustomWorldGen    文件:RenderSilverfish.java   
public RenderSilverfish(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSilverfish(), 0.3F);
}
项目:It-s-About-Time-Minecraft-Mod    文件:RenderAmber.java   
public RenderAmber(){
    this.model = new ModelBlock();
    modelSilverfish = new ModelSilverfish();
    modelSpider = new ModelSpider();
    modelCompsognathus = new ModelCompsognathus();
}
项目:Resilience-Client-Source    文件:RenderSilverfish.java   
public RenderSilverfish()
{
    super(new ModelSilverfish(), 0.3F);
}
项目:ExpandedRailsMod    文件:RenderSilverfish.java   
public RenderSilverfish(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSilverfish(), 0.3F);
}
项目:Cauldron    文件:RenderSilverfish.java   
public RenderSilverfish()
{
    super(new ModelSilverfish(), 0.3F);
}
项目:Cauldron    文件:RenderSilverfish.java   
public RenderSilverfish()
{
    super(new ModelSilverfish(), 0.3F);
}
项目:RuneCraftery    文件:RenderSilverfish.java   
public RenderSilverfish() {
   super(new ModelSilverfish(), 0.3F);
}
项目:RuneCraftery    文件:RenderSilverfish.java   
public RenderSilverfish()
{
    super(new ModelSilverfish(), 0.3F);
}
项目:BetterNutritionMod    文件:RenderSilverfish.java   
public RenderSilverfish()
{
    super(new ModelSilverfish(), 0.3F);
}