本文整理汇总了Java中net.minecraft.client.renderer.entity.layers.LayerHeldItem类的典型用法代码示例。如果您正苦于以下问题:Java LayerHeldItem类的具体用法?Java LayerHeldItem怎么用?Java LayerHeldItem使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LayerHeldItem类属于net.minecraft.client.renderer.entity.layers包,在下文中一共展示了LayerHeldItem类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RenderPlayer
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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));
}
示例2: RenderArmorStand
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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));
}
示例3: RenderVindicator
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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);
}
});
}
示例4: RenderGuard
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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);
}
示例5: RenderTrumpetSkeleton
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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);
}
});
}
示例6: RenderPigZombie
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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);
}
});
}
示例7: RenderZombie
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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);
}
示例8: RenderSkeleton
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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);
}
});
}
示例9: ArmorStandRenderer
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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));
}
示例10: RenderGiantZombie
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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);
}
});
}
示例11: RenderSkeleton
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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);
}
});
}
示例12: RenderGiantZombie
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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);
}
});
}
示例13: RenderPlayer
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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));
}
示例14: RenderBiped
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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));
}
示例15: RenderArmorStand
import net.minecraft.client.renderer.entity.layers.LayerHeldItem; //导入依赖的package包/类
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));
}