Java 类net.minecraft.client.renderer.entity.layers.LayerHeldItem 实例源码

项目:Backmemed    文件:RenderArmorStand.java   
public RenderArmorStand(RenderManager manager)
{
    super(manager, new ModelArmorStand(), 0.0F);
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelArmorStandArmor(0.5F);
            this.modelArmor = new ModelArmorStandArmor(1.0F);
        }
    };
    this.addLayer(layerbipedarmor);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerElytra(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
项目:Backmemed    文件:RenderVindicator.java   
public RenderVindicator(RenderManager p_i47189_1_)
{
    super(p_i47189_1_, new ModelVindicator(0.0F), 0.5F);
    this.addLayer(new LayerHeldItem(this)
    {
        public void doRenderLayer(EntityLivingBase entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale)
        {
            if (((EntityVindicator)entitylivingbaseIn).func_190639_o())
            {
                super.doRenderLayer(entitylivingbaseIn, limbSwing, limbSwingAmount, partialTicks, ageInTicks, netHeadYaw, headPitch, scale);
            }
        }
        protected void func_191361_a(EnumHandSide p_191361_1_)
        {
            ((ModelIllager)this.livingEntityRenderer.getMainModel()).func_191216_a(p_191361_1_).postRender(0.0625F);
        }
    });
}
项目:ToroQuest    文件:RenderGuard.java   
public RenderGuard(RenderManager renderManagerIn) {
    super(renderManagerIn, new ModelGuard(), 0.5F);

    LayerRenderer<?> layerrenderer = (LayerRenderer) this.layerRenderers.get(0);
    defaultModel = (ModelGuard) mainModel;

    addLayer(new LayerHeldItem(this));

    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this) {
        protected void initArmor() {
            modelLeggings = new ModelZombie(0.5F, true);
            modelArmor = new ModelZombie(1.0F, true);
        }
    };
    addLayer(layerbipedarmor);

    // addLayer(new LayerCape(this));

    this.defaultLayers = Lists.newArrayList(this.layerRenderers);

}
项目:trumpet-skeleton    文件:RenderTrumpetSkeleton.java   
public RenderTrumpetSkeleton(RenderManager renderManager) {
    super(renderManager, new ModelTrumpetSkeleton(), 0.5F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelTrumpetSkeleton(0.5F, true);
            this.modelArmor = new ModelTrumpetSkeleton(1.0F, true);
        }
    });
}
项目:DecompiledMinecraft    文件:RenderPigZombie.java   
public RenderPigZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelZombie(0.5F, true);
            this.field_177186_d = new ModelZombie(1.0F, true);
        }
    });
}
项目:DecompiledMinecraft    文件:RenderZombie.java   
public RenderZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    LayerRenderer layerrenderer = (LayerRenderer)this.layerRenderers.get(0);
    this.field_82434_o = this.modelBipedMain;
    this.zombieVillagerModel = new ModelZombieVillager();
    this.addLayer(new LayerHeldItem(this));
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelZombie(0.5F, true);
            this.field_177186_d = new ModelZombie(1.0F, true);
        }
    };
    this.addLayer(layerbipedarmor);
    this.field_177122_o = Lists.newArrayList(this.layerRenderers);

    if (layerrenderer instanceof LayerCustomHead)
    {
        this.removeLayer(layerrenderer);
        this.addLayer(new LayerCustomHead(this.zombieVillagerModel.bipedHead));
    }

    this.removeLayer(layerbipedarmor);
    this.addLayer(new LayerVillagerArmor(this));
    this.field_177121_n = Lists.newArrayList(this.layerRenderers);
}
项目:DecompiledMinecraft    文件:RenderSkeleton.java   
public RenderSkeleton(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSkeleton(), 0.5F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelSkeleton(0.5F, true);
            this.field_177186_d = new ModelSkeleton(1.0F, true);
        }
    });
}
项目:DecompiledMinecraft    文件:ArmorStandRenderer.java   
public ArmorStandRenderer(RenderManager p_i46195_1_)
{
    super(p_i46195_1_, new ModelArmorStand(), 0.0F);
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelArmorStandArmor(0.5F);
            this.field_177186_d = new ModelArmorStandArmor(1.0F);
        }
    };
    this.addLayer(layerbipedarmor);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
项目:DecompiledMinecraft    文件:RenderGiantZombie.java   
public RenderGiantZombie(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn, float scaleIn)
{
    super(renderManagerIn, modelBaseIn, shadowSizeIn * scaleIn);
    this.scale = scaleIn;
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelZombie(0.5F, true);
            this.field_177186_d = new ModelZombie(1.0F, true);
        }
    });
}
项目:DecompiledMinecraft    文件:RenderPlayer.java   
public RenderPlayer(RenderManager renderManager, boolean useSmallArms)
{
    super(renderManager, new ModelPlayer(0.0F, useSmallArms), 0.5F);
    this.smallArms = useSmallArms;
    this.addLayer(new LayerBipedArmor(this));
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerArrow(this));
    this.addLayer(new LayerDeadmau5Head(this));
    this.addLayer(new LayerCape(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
项目:BaseClient    文件:RenderPigZombie.java   
public RenderPigZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelZombie(0.5F, true);
            this.field_177186_d = new ModelZombie(1.0F, true);
        }
    });
}
项目:BaseClient    文件:RenderZombie.java   
public RenderZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    LayerRenderer layerrenderer = (LayerRenderer)this.layerRenderers.get(0);
    this.field_82434_o = this.modelBipedMain;
    this.zombieVillagerModel = new ModelZombieVillager();
    this.addLayer(new LayerHeldItem(this));
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelZombie(0.5F, true);
            this.field_177186_d = new ModelZombie(1.0F, true);
        }
    };
    this.addLayer(layerbipedarmor);
    this.field_177122_o = Lists.newArrayList(this.layerRenderers);

    if (layerrenderer instanceof LayerCustomHead)
    {
        this.removeLayer(layerrenderer);
        this.addLayer(new LayerCustomHead(this.zombieVillagerModel.bipedHead));
    }

    this.removeLayer(layerbipedarmor);
    this.addLayer(new LayerVillagerArmor(this));
    this.field_177121_n = Lists.newArrayList(this.layerRenderers);
}
项目:BaseClient    文件:RenderSkeleton.java   
public RenderSkeleton(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSkeleton(), 0.5F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelSkeleton(0.5F, true);
            this.field_177186_d = new ModelSkeleton(1.0F, true);
        }
    });
}
项目:BaseClient    文件:ArmorStandRenderer.java   
public ArmorStandRenderer(RenderManager p_i46195_1_)
{
    super(p_i46195_1_, new ModelArmorStand(), 0.0F);
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelArmorStandArmor(0.5F);
            this.field_177186_d = new ModelArmorStandArmor(1.0F);
        }
    };
    this.addLayer(layerbipedarmor);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
项目:BaseClient    文件:RenderGiantZombie.java   
public RenderGiantZombie(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn, float scaleIn)
{
    super(renderManagerIn, modelBaseIn, shadowSizeIn * scaleIn);
    this.scale = scaleIn;
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelZombie(0.5F, true);
            this.field_177186_d = new ModelZombie(1.0F, true);
        }
    });
}
项目:BaseClient    文件:RenderPlayer.java   
public RenderPlayer(RenderManager renderManager, boolean useSmallArms)
{
    super(renderManager, new ModelPlayer(0.0F, useSmallArms), 0.5F);
    this.smallArms = useSmallArms;
    this.addLayer(new LayerBipedArmor(this));
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerArrow(this));
    this.addLayer(new LayerDeadmau5Head(this));
    this.addLayer(new LayerCape(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
项目:BaseClient    文件:RenderPigZombie.java   
public RenderPigZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelZombie(0.5F, true);
            this.field_177186_d = new ModelZombie(1.0F, true);
        }
    });
}
项目:BaseClient    文件:RenderZombie.java   
public RenderZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    LayerRenderer layerrenderer = (LayerRenderer)this.layerRenderers.get(0);
    this.field_82434_o = this.modelBipedMain;
    this.zombieVillagerModel = new ModelZombieVillager();
    this.addLayer(new LayerHeldItem(this));
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelZombie(0.5F, true);
            this.field_177186_d = new ModelZombie(1.0F, true);
        }
    };
    this.addLayer(layerbipedarmor);
    this.field_177122_o = Lists.newArrayList(this.layerRenderers);

    if (layerrenderer instanceof LayerCustomHead)
    {
        this.removeLayer(layerrenderer);
        this.addLayer(new LayerCustomHead(this.zombieVillagerModel.bipedHead));
    }

    this.removeLayer(layerbipedarmor);
    this.addLayer(new LayerVillagerArmor(this));
    this.field_177121_n = Lists.newArrayList(this.layerRenderers);
}
项目:BaseClient    文件:RenderSkeleton.java   
public RenderSkeleton(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSkeleton(), 0.5F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelSkeleton(0.5F, true);
            this.field_177186_d = new ModelSkeleton(1.0F, true);
        }
    });
}
项目:BaseClient    文件:ArmorStandRenderer.java   
public ArmorStandRenderer(RenderManager p_i46195_1_)
{
    super(p_i46195_1_, new ModelArmorStand(), 0.0F);
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelArmorStandArmor(0.5F);
            this.field_177186_d = new ModelArmorStandArmor(1.0F);
        }
    };
    this.addLayer(layerbipedarmor);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
项目:BaseClient    文件:RenderGiantZombie.java   
public RenderGiantZombie(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn, float scaleIn)
{
    super(renderManagerIn, modelBaseIn, shadowSizeIn * scaleIn);
    this.scale = scaleIn;
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.field_177189_c = new ModelZombie(0.5F, true);
            this.field_177186_d = new ModelZombie(1.0F, true);
        }
    });
}
项目:BaseClient    文件:RenderPlayer.java   
public RenderPlayer(RenderManager renderManager, boolean useSmallArms)
{
    super(renderManager, new ModelPlayer(0.0F, useSmallArms), 0.5F);
    this.smallArms = useSmallArms;
    this.addLayer(new LayerBipedArmor(this));
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerArrow(this));
    this.addLayer(new LayerDeadmau5Head(this));
    this.addLayer(new LayerCape(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
项目:Backmemed    文件:RenderSkeleton.java   
public RenderSkeleton(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSkeleton(), 0.5F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelSkeleton(0.5F, true);
            this.modelArmor = new ModelSkeleton(1.0F, true);
        }
    });
}
项目:Backmemed    文件:RenderGiantZombie.java   
public RenderGiantZombie(RenderManager p_i47206_1_, float p_i47206_2_)
{
    super(p_i47206_1_, new ModelZombie(), 0.5F * p_i47206_2_);
    this.scale = p_i47206_2_;
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelZombie(0.5F, true);
            this.modelArmor = new ModelZombie(1.0F, true);
        }
    });
}
项目:Backmemed    文件:RenderPlayer.java   
public RenderPlayer(RenderManager renderManager, boolean useSmallArms)
{
    super(renderManager, new ModelPlayer(0.0F, useSmallArms), 0.5F);
    this.smallArms = useSmallArms;
    this.addLayer(new LayerBipedArmor(this));
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerArrow(this));
    this.addLayer(new LayerDeadmau5Head(this));
    this.addLayer(new LayerCape(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
    this.addLayer(new LayerElytra(this));
}
项目:Backmemed    文件:RenderBiped.java   
public RenderBiped(RenderManager renderManagerIn, ModelBiped modelBipedIn, float shadowSize)
{
    super(renderManagerIn, modelBipedIn, shadowSize);
    this.addLayer(new LayerCustomHead(modelBipedIn.bipedHead));
    this.addLayer(new LayerElytra(this));
    this.addLayer(new LayerHeldItem(this));
}
项目:CustomWorldGen    文件:RenderArmorStand.java   
public RenderArmorStand(RenderManager manager)
{
    super(manager, new ModelArmorStand(), 0.0F);
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelArmorStandArmor(0.5F);
            this.modelArmor = new ModelArmorStandArmor(1.0F);
        }
    };
    this.addLayer(layerbipedarmor);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
项目:CustomWorldGen    文件:RenderPigZombie.java   
public RenderPigZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelZombie(0.5F, true);
            this.modelArmor = new ModelZombie(1.0F, true);
        }
    });
}
项目:CustomWorldGen    文件:RenderZombie.java   
public RenderZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    LayerRenderer<?> layerrenderer = (LayerRenderer)this.layerRenderers.get(0);
    this.defaultModel = this.modelBipedMain;
    this.zombieVillagerModel = new ModelZombieVillager();
    this.addLayer(new LayerHeldItem(this));
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelZombie(0.5F, true);
            this.modelArmor = new ModelZombie(1.0F, true);
        }
    };
    this.addLayer(layerbipedarmor);
    this.defaultLayers = Lists.newArrayList(this.layerRenderers);

    if (layerrenderer instanceof LayerCustomHead)
    {
        this.removeLayer(layerrenderer);
        this.addLayer(new LayerCustomHead(this.zombieVillagerModel.bipedHead));
    }

    this.removeLayer(layerbipedarmor);
    this.addLayer(new LayerVillagerArmor(this));
    this.villagerLayers = Lists.newArrayList(this.layerRenderers);
}
项目:CustomWorldGen    文件:RenderSkeleton.java   
public RenderSkeleton(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelSkeleton(), 0.5F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelSkeleton(0.5F, true);
            this.modelArmor = new ModelSkeleton(1.0F, true);
        }
    });
    this.addLayer(new LayerSkeletonType(this));
}
项目:CustomWorldGen    文件:RenderGiantZombie.java   
public RenderGiantZombie(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn, float scaleIn)
{
    super(renderManagerIn, modelBaseIn, shadowSizeIn * scaleIn);
    this.scale = scaleIn;
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelZombie(0.5F, true);
            this.modelArmor = new ModelZombie(1.0F, true);
        }
    });
}
项目:CustomWorldGen    文件:RenderPlayer.java   
public RenderPlayer(RenderManager renderManager, boolean useSmallArms)
{
    super(renderManager, new ModelPlayer(0.0F, useSmallArms), 0.5F);
    this.smallArms = useSmallArms;
    this.addLayer(new LayerBipedArmor(this));
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerArrow(this));
    this.addLayer(new LayerDeadmau5Head(this));
    this.addLayer(new LayerCape(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
    this.addLayer(new LayerElytra(this));
}
项目:CrystalMod    文件:RenderMinionBase.java   
public RenderMinionBase(RenderManager renderManagerIn) {
    super(renderManagerIn, new ModelMinionBase(0.0F, false), 0.5F);
    this.addLayer(new LayerBipedArmor(this));
       this.addLayer(new LayerHeldItem(this));
       this.addLayer(new LayerArrow(this));
       this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
       this.addLayer(new LayerBackItem(this));
}
项目:CrystalMod    文件:RenderCrystalPigZombie.java   
public RenderCrystalPigZombie(RenderManager renderManagerIn)
 {
     super(renderManagerIn, new ModelZombie(), 0.5F);
     this.addLayer(new LayerHeldItem(this));
     this.addLayer(new LayerBipedArmor(this)
     {
         @Override
protected void initArmor()
         {
             this.modelLeggings = new ModelZombie(0.5F, true);
             this.modelArmor = new ModelZombie(1.0F, true);
         }
     });
 }
项目:ToroChess    文件:RenderKnight.java   
public RenderKnight(RenderManager renderManagerIn) {
  super(renderManagerIn, new ModelKnight(), 0.5F);
  LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this) {
    protected void initArmor() {
      this.modelLeggings = new ModelKnight(0.5F, true);
      this.modelArmor = new ModelKnight(1.0F, true);
    }
  };
  addLayer(layerbipedarmor);
  addLayer(new LayerHeldItem(this));
}
项目:LootableBodies    文件:CorpseRenderer.java   
public CorpseRenderer(RenderManager renderManagerIn) {
    super(renderManagerIn,  new ModelPlayer(0.0F, true), 0.5F);
    thinArmsModel = (ModelPlayer)this.mainModel;
    thickArmsModel =  new ModelPlayer(0.0F, false);
    //
    this.addLayer(new LayerBipedArmor(this));
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerArrow(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
    RenderPlayer k;
    RenderPigZombie j;
}
项目:Bookshelf    文件:RenderPlayerMob.java   
public RenderPlayerMob (RenderManager renderManager, ModelPlayerMob model) {

        super(renderManager, model, 0.5F);
        this.addLayer(new LayerBipedArmor(this));
        this.addLayer(new LayerHeldItem(this));
        this.addLayer(new LayerArrow(this));
        this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
        this.addLayer(new LayerElytra(this));
        this.blendProfile = Profile.PLAYER_SKIN;
    }
项目:ExpandedRailsMod    文件:RenderArmorStand.java   
public RenderArmorStand(RenderManager manager)
{
    super(manager, new ModelArmorStand(), 0.0F);
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelArmorStandArmor(0.5F);
            this.modelArmor = new ModelArmorStandArmor(1.0F);
        }
    };
    this.addLayer(layerbipedarmor);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerCustomHead(this.getMainModel().bipedHead));
}
项目:ExpandedRailsMod    文件:RenderPigZombie.java   
public RenderPigZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    this.addLayer(new LayerHeldItem(this));
    this.addLayer(new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelZombie(0.5F, true);
            this.modelArmor = new ModelZombie(1.0F, true);
        }
    });
}
项目:ExpandedRailsMod    文件:RenderZombie.java   
public RenderZombie(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelZombie(), 0.5F, 1.0F);
    LayerRenderer<?> layerrenderer = (LayerRenderer)this.layerRenderers.get(0);
    this.defaultModel = this.modelBipedMain;
    this.zombieVillagerModel = new ModelZombieVillager();
    this.addLayer(new LayerHeldItem(this));
    LayerBipedArmor layerbipedarmor = new LayerBipedArmor(this)
    {
        protected void initArmor()
        {
            this.modelLeggings = new ModelZombie(0.5F, true);
            this.modelArmor = new ModelZombie(1.0F, true);
        }
    };
    this.addLayer(layerbipedarmor);
    this.defaultLayers = Lists.newArrayList(this.layerRenderers);

    if (layerrenderer instanceof LayerCustomHead)
    {
        this.removeLayer(layerrenderer);
        this.addLayer(new LayerCustomHead(this.zombieVillagerModel.bipedHead));
    }

    this.removeLayer(layerbipedarmor);
    this.addLayer(new LayerVillagerArmor(this));
    this.villagerLayers = Lists.newArrayList(this.layerRenderers);
}