本文整理汇总了Java中net.minecraft.client.model.ModelChicken类的典型用法代码示例。如果您正苦于以下问题:Java ModelChicken类的具体用法?Java ModelChicken怎么用?Java ModelChicken使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ModelChicken类属于net.minecraft.client.model包,在下文中一共展示了ModelChicken类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getModelRenderer
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
if (!(model instanceof ModelChicken))
{
return null;
}
else
{
ModelChicken modelchicken = (ModelChicken)model;
return modelPart.equals("head") ? modelchicken.head : (modelPart.equals("body") ? modelchicken.body : (modelPart.equals("right_leg") ? modelchicken.rightLeg : (modelPart.equals("left_leg") ? modelchicken.leftLeg : (modelPart.equals("right_wing") ? modelchicken.rightWing : (modelPart.equals("left_wing") ? modelchicken.leftWing : (modelPart.equals("bill") ? modelchicken.bill : (modelPart.equals("chin") ? modelchicken.chin : null)))))));
}
}
示例2: registerRenderersMobs
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
private void registerRenderersMobs() {
RenderingRegistry.registerEntityRenderingHandler(PetCat.class, new RenderPetCat(new ModelPetCat()));
RenderingRegistry.registerEntityRenderingHandler(PetChicken.class, new RenderPetChicken(new ModelChicken()));
RenderingRegistry.registerEntityRenderingHandler(PetCow.class, new RenderPetCow());
RenderingRegistry.registerEntityRenderingHandler(PetDog.class, new RenderPetDog(new ModelPetDog(), new ModelPetDog()));
RenderingRegistry.registerEntityRenderingHandler(PetMooshroom.class, new RenderPetMooshroom());
RenderingRegistry.registerEntityRenderingHandler(PetPig.class, new RenderPetPig(new ModelPig(), new ModelPig(0.5f)));
RenderingRegistry.registerEntityRenderingHandler(PetSheep.class, new RenderPetSheep(new ModelPetSheep2(), new ModelPetSheep1()));
}
示例3: RenderManager
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public RenderManager(TextureManager renderEngineIn, RenderItem itemRendererIn)
{
this.renderEngine = renderEngineIn;
this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider(this));
this.entityRenderMap.put(EntitySpider.class, new RenderSpider(this));
this.entityRenderMap.put(EntityPig.class, new RenderPig(this, new ModelPig(), 0.7F));
this.entityRenderMap.put(EntitySheep.class, new RenderSheep(this, new ModelSheep2(), 0.7F));
this.entityRenderMap.put(EntityCow.class, new RenderCow(this, new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(this, new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityWolf.class, new RenderWolf(this, new ModelWolf(), 0.5F));
this.entityRenderMap.put(EntityChicken.class, new RenderChicken(this, new ModelChicken(), 0.3F));
this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(this, new ModelOcelot(), 0.4F));
this.entityRenderMap.put(EntityRabbit.class, new RenderRabbit(this, new ModelRabbit(), 0.3F));
this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish(this));
this.entityRenderMap.put(EntityEndermite.class, new RenderEndermite(this));
this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper(this));
this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman(this));
this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan(this));
this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton(this));
this.entityRenderMap.put(EntityWitch.class, new RenderWitch(this));
this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze(this));
this.entityRenderMap.put(EntityPigZombie.class, new RenderPigZombie(this));
this.entityRenderMap.put(EntityZombie.class, new RenderZombie(this));
this.entityRenderMap.put(EntitySlime.class, new RenderSlime(this, new ModelSlime(16), 0.25F));
this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube(this));
this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(this, new ModelZombie(), 0.5F, 6.0F));
this.entityRenderMap.put(EntityGhast.class, new RenderGhast(this));
this.entityRenderMap.put(EntitySquid.class, new RenderSquid(this, new ModelSquid(), 0.7F));
this.entityRenderMap.put(EntityVillager.class, new RenderVillager(this));
this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem(this));
this.entityRenderMap.put(EntityBat.class, new RenderBat(this));
this.entityRenderMap.put(EntityGuardian.class, new RenderGuardian(this));
this.entityRenderMap.put(EntityDragon.class, new RenderDragon(this));
this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal(this));
this.entityRenderMap.put(EntityWither.class, new RenderWither(this));
this.entityRenderMap.put(Entity.class, new RenderEntity(this));
this.entityRenderMap.put(EntityPainting.class, new RenderPainting(this));
this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame(this, itemRendererIn));
this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot(this));
this.entityRenderMap.put(EntityArrow.class, new RenderArrow(this));
this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(this, Items.snowball, itemRendererIn));
this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(this, Items.ender_pearl, itemRendererIn));
this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(this, Items.ender_eye, itemRendererIn));
this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(this, Items.egg, itemRendererIn));
this.entityRenderMap.put(EntityPotion.class, new RenderPotion(this, itemRendererIn));
this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(this, Items.experience_bottle, itemRendererIn));
this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(this, Items.fireworks, itemRendererIn));
this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(this, 2.0F));
this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(this, 0.5F));
this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull(this));
this.entityRenderMap.put(EntityItem.class, new RenderEntityItem(this, itemRendererIn));
this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb(this));
this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed(this));
this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock(this));
this.entityRenderMap.put(EntityArmorStand.class, new ArmorStandRenderer(this));
this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart(this));
this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner(this));
this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart(this));
this.entityRenderMap.put(EntityBoat.class, new RenderBoat(this));
this.entityRenderMap.put(EntityFishHook.class, new RenderFish(this));
this.entityRenderMap.put(EntityHorse.class, new RenderHorse(this, new ModelHorse(), 0.75F));
this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt(this));
this.playerRenderer = new RenderPlayer(this);
this.skinMap.put("default", this.playerRenderer);
this.skinMap.put("slim", new RenderPlayer(this, true));
}
示例4: RenderManager
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public RenderManager(TextureManager renderEngineIn, RenderItem itemRendererIn)
{
this.renderEngine = renderEngineIn;
this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider(this));
this.entityRenderMap.put(EntitySpider.class, new RenderSpider(this));
this.entityRenderMap.put(EntityPig.class, new RenderPig(this, new ModelPig(), 0.7F));
this.entityRenderMap.put(EntitySheep.class, new RenderSheep(this, new ModelSheep2(), 0.7F));
this.entityRenderMap.put(EntityCow.class, new RenderCow(this, new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(this, new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityWolf.class, new RenderWolf(this, new ModelWolf(), 0.5F));
this.entityRenderMap.put(EntityChicken.class, new RenderChicken(this, new ModelChicken(), 0.3F));
this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(this, new ModelOcelot(), 0.4F));
this.entityRenderMap.put(EntityRabbit.class, new RenderRabbit(this, new ModelRabbit(), 0.3F));
this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish(this));
this.entityRenderMap.put(EntityEndermite.class, new RenderEndermite(this));
this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper(this));
this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman(this));
this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan(this));
this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton(this));
this.entityRenderMap.put(EntityWitch.class, new RenderWitch(this));
this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze(this));
this.entityRenderMap.put(EntityPigZombie.class, new RenderPigZombie(this));
this.entityRenderMap.put(EntityZombie.class, new RenderZombie(this));
this.entityRenderMap.put(EntitySlime.class, new RenderSlime(this, new ModelSlime(16), 0.25F));
this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube(this));
this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(this, new ModelZombie(), 0.5F, 6.0F));
this.entityRenderMap.put(EntityGhast.class, new RenderGhast(this));
this.entityRenderMap.put(EntitySquid.class, new RenderSquid(this, new ModelSquid(), 0.7F));
this.entityRenderMap.put(EntityVillager.class, new RenderVillager(this));
this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem(this));
this.entityRenderMap.put(EntityBat.class, new RenderBat(this));
this.entityRenderMap.put(EntityGuardian.class, new RenderGuardian(this));
this.entityRenderMap.put(EntityDragon.class, new RenderDragon(this));
this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal(this));
this.entityRenderMap.put(EntityWither.class, new RenderWither(this));
this.entityRenderMap.put(Entity.class, new RenderEntity(this));
this.entityRenderMap.put(EntityPainting.class, new RenderPainting(this));
this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame(this, itemRendererIn));
this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot(this));
this.entityRenderMap.put(EntityArrow.class, new RenderArrow(this));
this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(this, Items.snowball, itemRendererIn));
this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(this, Items.ender_pearl, itemRendererIn));
this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(this, Items.ender_eye, itemRendererIn));
this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(this, Items.egg, itemRendererIn));
this.entityRenderMap.put(EntityPotion.class, new RenderPotion(this, itemRendererIn));
this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(this, Items.experience_bottle, itemRendererIn));
this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(this, Items.fireworks, itemRendererIn));
this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(this, 2.0F));
this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(this, 0.5F));
this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull(this));
this.entityRenderMap.put(EntityItem.class, new RenderEntityItem(this, itemRendererIn));
this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb(this));
this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed(this));
this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock(this));
this.entityRenderMap.put(EntityArmorStand.class, new ArmorStandRenderer(this));
this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart(this));
this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner(this));
this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart(this));
this.entityRenderMap.put(EntityBoat.class, new RenderBoat(this));
this.entityRenderMap.put(EntityFishHook.class, new RenderFish(this));
this.entityRenderMap.put(EntityHorse.class, new RenderHorse(this, new ModelHorse(), 0.75F));
this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt(this));
this.playerRenderer = new RenderPlayer(this);
this.skinMap.put("default", this.playerRenderer);
this.skinMap.put("slim", new RenderPlayer(this, true));
PlayerItemsLayer.register(this.skinMap);
if (Reflector.RenderingRegistry_loadEntityRenderers.exists())
{
Reflector.call(Reflector.RenderingRegistry_loadEntityRenderers, new Object[] {this.entityRenderMap});
}
}
示例5: makeModel
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public ModelBase makeModel()
{
return new ModelChicken();
}
示例6: RenderChicken
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public RenderChicken(RenderManager p_i47211_1_)
{
super(p_i47211_1_, new ModelChicken(), 0.3F);
}
示例7: RenderManager
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public RenderManager(TextureManager renderEngineIn, RenderItem itemRendererIn)
{
this.renderEngine = renderEngineIn;
this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider(this));
this.entityRenderMap.put(EntitySpider.class, new RenderSpider(this));
this.entityRenderMap.put(EntityPig.class, new RenderPig(this, new ModelPig(), 0.7F));
this.entityRenderMap.put(EntitySheep.class, new RenderSheep(this, new ModelSheep2(), 0.7F));
this.entityRenderMap.put(EntityCow.class, new RenderCow(this, new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(this, new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityWolf.class, new RenderWolf(this, new ModelWolf(), 0.5F));
this.entityRenderMap.put(EntityChicken.class, new RenderChicken(this, new ModelChicken(), 0.3F));
this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(this, new ModelOcelot(), 0.4F));
this.entityRenderMap.put(EntityRabbit.class, new RenderRabbit(this, new ModelRabbit(), 0.3F));
this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish(this));
this.entityRenderMap.put(EntityEndermite.class, new RenderEndermite(this));
this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper(this));
this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman(this));
this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan(this));
this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton(this));
this.entityRenderMap.put(EntityWitch.class, new RenderWitch(this));
this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze(this));
this.entityRenderMap.put(EntityPigZombie.class, new RenderPigZombie(this));
this.entityRenderMap.put(EntityZombie.class, new RenderZombie(this));
this.entityRenderMap.put(EntitySlime.class, new RenderSlime(this, new ModelSlime(16), 0.25F));
this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube(this));
this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(this, new ModelZombie(), 0.5F, 6.0F));
this.entityRenderMap.put(EntityGhast.class, new RenderGhast(this));
this.entityRenderMap.put(EntitySquid.class, new RenderSquid(this, new ModelSquid(), 0.7F));
this.entityRenderMap.put(EntityVillager.class, new RenderVillager(this));
this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem(this));
this.entityRenderMap.put(EntityBat.class, new RenderBat(this));
this.entityRenderMap.put(EntityGuardian.class, new RenderGuardian(this));
this.entityRenderMap.put(EntityShulker.class, new RenderShulker(this, new ModelShulker()));
this.entityRenderMap.put(EntityPolarBear.class, new RenderPolarBear(this, new ModelPolarBear(), 0.7F));
this.entityRenderMap.put(EntityDragon.class, new RenderDragon(this));
this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal(this));
this.entityRenderMap.put(EntityWither.class, new RenderWither(this));
this.entityRenderMap.put(Entity.class, new RenderEntity(this));
this.entityRenderMap.put(EntityPainting.class, new RenderPainting(this));
this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame(this, itemRendererIn));
this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot(this));
this.entityRenderMap.put(EntityTippedArrow.class, new RenderTippedArrow(this));
this.entityRenderMap.put(EntitySpectralArrow.class, new RenderSpectralArrow(this));
this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(this, Items.SNOWBALL, itemRendererIn));
this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(this, Items.ENDER_PEARL, itemRendererIn));
this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(this, Items.ENDER_EYE, itemRendererIn));
this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(this, Items.EGG, itemRendererIn));
this.entityRenderMap.put(EntityPotion.class, new RenderPotion(this, itemRendererIn));
this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(this, Items.EXPERIENCE_BOTTLE, itemRendererIn));
this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(this, Items.FIREWORKS, itemRendererIn));
this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(this, 2.0F));
this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(this, 0.5F));
this.entityRenderMap.put(EntityDragonFireball.class, new RenderDragonFireball(this));
this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull(this));
this.entityRenderMap.put(EntityShulkerBullet.class, new RenderShulkerBullet(this));
this.entityRenderMap.put(EntityItem.class, new RenderEntityItem(this, itemRendererIn));
this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb(this));
this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed(this));
this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock(this));
this.entityRenderMap.put(EntityArmorStand.class, new RenderArmorStand(this));
this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart(this));
this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner(this));
this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart(this));
this.entityRenderMap.put(EntityBoat.class, new RenderBoat(this));
this.entityRenderMap.put(EntityFishHook.class, new RenderFish(this));
this.entityRenderMap.put(EntityAreaEffectCloud.class, new RenderAreaEffectCloud(this));
this.entityRenderMap.put(EntityHorse.class, new RenderHorse(this, new ModelHorse(), 0.75F));
this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt(this));
this.playerRenderer = new RenderPlayer(this);
this.skinMap.put("default", this.playerRenderer);
this.skinMap.put("slim", new RenderPlayer(this, true));
net.minecraftforge.fml.client.registry.RenderingRegistry.loadEntityRenderers(this, this.entityRenderMap);
}
示例8: preInitClientOnly
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public static void preInitClientOnly(FMLPreInitializationEvent event)
{
RenderingRegistry.registerEntityRenderingHandler(EntityDuck.class, manager -> new RenderDuck(manager, new ModelChicken(), 0.3F));
registerItemRendering("bridge");
registerItemRendering("crushed_ender");
registerItemRendering("coffee");
registerItemRendering("coffee_mug");
registerItemRendering("ender_block");
registerItemRendering("tea");
registerItemRendering("light_coffee");
registerItemRendering("lute");
registerItemRendering("blaze_block");
registerItemRendering("carrot_block");
registerItemRendering("apple_block");
registerItemRendering("golden_mug");
registerItemRendering("jewel_soup");
registerItemRendering("potato_block");
registerItemRendering("baked_potato_block");
registerItemRendering("chicken_nest");
registerItemRendering("bacon_wand");
registerItemRendering("chocolate_cap");
registerItemRendering("bacon_core");
registerItemRendering("infused_bacon_core");
registerItemRendering("trash_can");
registerItemRendering("wild_grape_vine");
registerItemRendering("grapes");
registerItemRendering("grape_seeds");
registerItemRendering("plantable_grape_seeds");
registerItemRendering("grape_vine");
registerItemRendering("moon_flower");
registerItemRendering("blaze_soup");
registerItemRendering("walking_stick");
registerItemRendering("soda_can");
registerItemRendering("root_beer");
registerItemRendering("apple_soda");
registerItemRendering("melon_soda");
registerItemRendering("grape_soda");
registerItemRendering("closed_root_beer");
registerItemRendering("closed_apple_soda");
registerItemRendering("closed_melon_soda");
registerItemRendering("closed_grape_soda");
registerItemRendering("iron_dagger");
registerItemRendering("wooden_dagger");
registerItemRendering("stone_dagger");
registerItemRendering("diamond_dagger");
registerItemRendering("golden_dagger");
registerItemRendering("wooden_round_shield");
registerItemRendering("great_grape");
registerItemRendering("wine");
registerItemRendering("wine_bottle");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.BLACK.getDyeDamage(), "boxing_glove_black");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.RED.getDyeDamage(), "boxing_glove_red");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.GREEN.getDyeDamage(), "boxing_glove_green");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.BROWN.getDyeDamage(), "boxing_glove_brown");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.BLUE.getDyeDamage(), "boxing_glove_blue");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.PURPLE.getDyeDamage(), "boxing_glove_purple");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.CYAN.getDyeDamage(), "boxing_glove_cyan");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.SILVER.getDyeDamage(), "boxing_glove_silver");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.GRAY.getDyeDamage(), "boxing_glove_gray");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.PINK.getDyeDamage(), "boxing_glove_pink");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.LIME.getDyeDamage(), "boxing_glove_lime");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.YELLOW.getDyeDamage(), "boxing_glove_yellow");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.LIGHT_BLUE.getDyeDamage(), "boxing_glove_light_blue");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.MAGENTA.getDyeDamage(), "boxing_glove_magenta");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.ORANGE.getDyeDamage(), "boxing_glove_orange");
registerItemRendering(KalStuffItems.boxing_glove, EnumDyeColor.WHITE.getDyeDamage(), "boxing_glove_white");
//from now on add itemRendering here
}
示例9: RenderManager
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
private RenderManager()
{
this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider());
this.entityRenderMap.put(EntitySpider.class, new RenderSpider());
this.entityRenderMap.put(EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F));
this.entityRenderMap.put(EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
this.entityRenderMap.put(EntityCow.class, new RenderCow(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityWolf.class, new RenderWolf(new ModelWolf(), new ModelWolf(), 0.5F));
this.entityRenderMap.put(EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F));
this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(new ModelOcelot(), 0.4F));
this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish());
this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper());
this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman());
this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan());
this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton());
this.entityRenderMap.put(EntityWitch.class, new RenderWitch());
this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze());
this.entityRenderMap.put(EntityZombie.class, new RenderZombie());
this.entityRenderMap.put(EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F));
this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube());
this.entityRenderMap.put(EntityPlayer.class, new RenderPlayer());
this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6.0F));
this.entityRenderMap.put(EntityGhast.class, new RenderGhast());
this.entityRenderMap.put(EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F));
this.entityRenderMap.put(EntityVillager.class, new RenderVillager());
this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem());
this.entityRenderMap.put(EntityBat.class, new RenderBat());
this.entityRenderMap.put(EntityDragon.class, new RenderDragon());
this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal());
this.entityRenderMap.put(EntityWither.class, new RenderWither());
this.entityRenderMap.put(Entity.class, new RenderEntity());
this.entityRenderMap.put(EntityPainting.class, new RenderPainting());
this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame());
this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot());
this.entityRenderMap.put(EntityArrow.class, new RenderArrow());
this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(Items.snowball));
this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(Items.ender_pearl));
this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(Items.ender_eye));
this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(Items.egg));
this.entityRenderMap.put(EntityPotion.class, new RenderSnowball(Items.potionitem, 16384));
this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(Items.experience_bottle));
this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(Items.fireworks));
this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(2.0F));
this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(0.5F));
this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull());
this.entityRenderMap.put(EntityItem.class, new RenderItem());
this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb());
this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed());
this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock());
this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart());
this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner());
this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart());
this.entityRenderMap.put(EntityBoat.class, new RenderBoat());
this.entityRenderMap.put(EntityFishHook.class, new RenderFish());
this.entityRenderMap.put(EntityHorse.class, new RenderHorse(new ModelHorse(), 0.75F));
this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt());
Iterator var1 = this.entityRenderMap.values().iterator();
while (var1.hasNext())
{
Render var2 = (Render)var1.next();
var2.setRenderManager(this);
}
}
示例10: RenderPeep
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public RenderPeep(){
super(new ModelChicken(), 0.3F);
}
示例11: ModelRooster
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public ModelRooster()
{
textureWidth = 64;
textureHeight = 32;
ModelChicken e;
byte b0 = 16;
this.head = new ModelRenderer(this, 0, 0);
this.head.addBox(-2.0F, -6.0F, -2.0F, 4, 6, 3, 0.0F);
this.head.setRotationPoint(0.0F, (float)(-1 + b0), -4.0F);
this.bill = new ModelRenderer(this, 14, 0);
this.bill.addBox(-2.0F, -4.0F, -4.0F, 4, 2, 2, 0.0F);
this.bill.setRotationPoint(0.0F, (float)(-1 + b0), -4.0F);
this.chin = new ModelRenderer(this, 14, 4);
this.chin.addBox(-1.0F, -2.0F, -3.0F, 2, 2, 2, 0.0F);
this.chin.setRotationPoint(0.0F, (float)(-1 + b0), -4.0F);
this.body = new ModelRenderer(this, 0, 9);
this.body.addBox(-3.0F, -4.0F, -3.0F, 6, 8, 6, 0.0F);
this.body.setRotationPoint(0.0F, (float)b0, 0.0F);
this.rightLeg = new ModelRenderer(this, 26, 0);
this.rightLeg.addBox(-1.0F, 0.0F, -3.0F, 3, 5, 3);
this.rightLeg.setRotationPoint(-2.0F, (float)(3 + b0), 1.0F);
this.leftLeg = new ModelRenderer(this, 26, 0);
this.leftLeg.addBox(-1.0F, 0.0F, -3.0F, 3, 5, 3);
this.leftLeg.setRotationPoint(1.0F, (float)(3 + b0), 1.0F);
this.rightWing = new ModelRenderer(this, 24, 13);
this.rightWing.addBox(0.0F, 0.0F, -3.0F, 1, 4, 6);
this.rightWing.setRotationPoint(-4.0F, (float)(-3 + b0), 0.0F);
this.leftWing = new ModelRenderer(this, 24, 13);
this.leftWing.addBox(-1.0F, 0.0F, -3.0F, 1, 4, 6);
this.leftWing.setRotationPoint(4.0F, (float)(-3 + b0), 0.0F);
this.combfront = new ModelRenderer(this, 38, 0);
this.combfront.addBox(-0.5F, -7F, -1.7F, 1, 1, 1);
this.combfront.setRotationPoint(0F, 0F, 0F);
this.combfront.setTextureSize(64, 32);
this.combmiddle = new ModelRenderer(this, 38, 0);
this.combmiddle.addBox(-0.5F, -7.5F, -1F, 1, 2, 1);
this.combmiddle.setRotationPoint(0F, 0F, 0F);
this.combmiddle.setTextureSize(64, 32);
this.combback = new ModelRenderer(this, 38, 0);
this.combback.addBox(-0.5F, -7F, -0.2F, 1, 1, 1);
this.combback.setRotationPoint(0F, 0F, 0F);
this.combback.setTextureSize(64, 32);
this.tail1 = new ModelRenderer(this, 38, 13);
this.tail1.addBox(-0.5F, -5F, 4F, 1, 4, 1);
this.tail1.setRotationPoint(0F, 16F, 0F);
this.tail1.setTextureSize(64, 32);
this.tail2 = new ModelRenderer(this, 38, 13);
this.tail2.addBox(0.5F, -6F, 4F, 1, 5, 1);
this.tail2.setRotationPoint(0F, 16F, 0F);
this.tail2.setTextureSize(64, 32);
this.tail3 = new ModelRenderer(this, 42, 13);
this.tail3.addBox(-1.5F, -5.5F, 4F, 1, 5, 1);
this.tail3.setRotationPoint(0F, 16F, 0F);
this.tail3.setTextureSize(64, 32);
this.tail4 = new ModelRenderer(this, 38, 13);
this.tail4.addBox(0.5F, -6F, 5F, 1, 1, 1);
this.tail4.setRotationPoint(0F, 16F, 0F);
this.tail4.setTextureSize(64, 32);
this.tail5 = new ModelRenderer(this, 42, 13);
this.tail5.addBox(-0.5F, -6F, 5F, 1, 5, 1);
this.tail5.setRotationPoint(0F, 16F, 0F);
this.tail5.setTextureSize(64, 32);
this.tail6 = new ModelRenderer(this, 42, 13);
this.tail6.addBox(-0.5F, -6F, 6F, 1, 1, 1);
this.tail6.setRotationPoint(0F, 16F, 0F);
this.tail6.setTextureSize(64, 32);
head.addChild(combback);
head.addChild(combfront);
head.addChild(combmiddle);
}
示例12: RenderEvilChicken
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public RenderEvilChicken(RenderManager manager)
{
super(manager, new ModelChicken(), 0.5F);
}
示例13: RenderDemonChicken
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public RenderDemonChicken(RenderManager manager)
{
super(manager, new ModelChicken(), 0.5F);
}
示例14: RenderAntiChicken
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
public RenderAntiChicken(RenderManager manager)
{
super(manager, new ModelChicken(), 0.5F);
}
示例15: RenderManager
import net.minecraft.client.model.ModelChicken; //导入依赖的package包/类
private RenderManager()
{
this.entityRenderMap.put(EntityCaveSpider.class, new RenderCaveSpider());
this.entityRenderMap.put(EntitySpider.class, new RenderSpider());
this.entityRenderMap.put(EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F));
this.entityRenderMap.put(EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
this.entityRenderMap.put(EntityCow.class, new RenderCow(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityMooshroom.class, new RenderMooshroom(new ModelCow(), 0.7F));
this.entityRenderMap.put(EntityWolf.class, new RenderWolf(new ModelWolf(), new ModelWolf(), 0.5F));
this.entityRenderMap.put(EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F));
this.entityRenderMap.put(EntityOcelot.class, new RenderOcelot(new ModelOcelot(), 0.4F));
this.entityRenderMap.put(EntitySilverfish.class, new RenderSilverfish());
this.entityRenderMap.put(EntityCreeper.class, new RenderCreeper());
this.entityRenderMap.put(EntityEnderman.class, new RenderEnderman());
this.entityRenderMap.put(EntitySnowman.class, new RenderSnowMan());
this.entityRenderMap.put(EntitySkeleton.class, new RenderSkeleton());
this.entityRenderMap.put(EntityWitch.class, new RenderWitch());
this.entityRenderMap.put(EntityBlaze.class, new RenderBlaze());
this.entityRenderMap.put(EntityZombie.class, new RenderZombie());
this.entityRenderMap.put(EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F));
this.entityRenderMap.put(EntityMagmaCube.class, new RenderMagmaCube());
this.entityRenderMap.put(EntityPlayer.class, new RenderPlayer());
this.entityRenderMap.put(EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6.0F));
this.entityRenderMap.put(EntityGhast.class, new RenderGhast());
this.entityRenderMap.put(EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F));
this.entityRenderMap.put(EntityVillager.class, new RenderVillager());
this.entityRenderMap.put(EntityIronGolem.class, new RenderIronGolem());
this.entityRenderMap.put(EntityBat.class, new RenderBat());
this.entityRenderMap.put(EntityDragon.class, new RenderDragon());
this.entityRenderMap.put(EntityEnderCrystal.class, new RenderEnderCrystal());
this.entityRenderMap.put(EntityWither.class, new RenderWither());
this.entityRenderMap.put(Entity.class, new RenderEntity());
this.entityRenderMap.put(EntityPainting.class, new RenderPainting());
this.entityRenderMap.put(EntityItemFrame.class, new RenderItemFrame());
this.entityRenderMap.put(EntityLeashKnot.class, new RenderLeashKnot());
this.entityRenderMap.put(EntityArrow.class, new RenderArrow());
this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(Items.snowball));
this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(Items.ender_pearl));
this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(Items.ender_eye));
this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(Items.egg));
this.entityRenderMap.put(EntityPotion.class, new RenderSnowball(Items.potionitem, 16384));
this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(Items.experience_bottle));
this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(Items.fireworks));
this.entityRenderMap.put(EntityLargeFireball.class, new RenderFireball(2.0F));
this.entityRenderMap.put(EntitySmallFireball.class, new RenderFireball(0.5F));
this.entityRenderMap.put(EntityWitherSkull.class, new RenderWitherSkull());
this.entityRenderMap.put(EntityItem.class, new RenderItem());
this.entityRenderMap.put(EntityXPOrb.class, new RenderXPOrb());
this.entityRenderMap.put(EntityTNTPrimed.class, new RenderTNTPrimed());
this.entityRenderMap.put(EntityFallingBlock.class, new RenderFallingBlock());
this.entityRenderMap.put(EntityMinecartTNT.class, new RenderTntMinecart());
this.entityRenderMap.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner());
this.entityRenderMap.put(EntityMinecart.class, new RenderMinecart());
this.entityRenderMap.put(EntityBoat.class, new RenderBoat());
this.entityRenderMap.put(EntityFishHook.class, new RenderFish());
this.entityRenderMap.put(EntityHorse.class, new RenderHorse(new ModelHorse(), 0.75F));
this.entityRenderMap.put(EntityLightningBolt.class, new RenderLightningBolt());
Iterator iterator = this.entityRenderMap.values().iterator();
while (iterator.hasNext())
{
Render render = (Render)iterator.next();
render.setRenderManager(this);
}
}