public static EntityMinecart func_180458_a(World worldIn, double p_180458_1_, double p_180458_3_, double p_180458_5_, EntityMinecart.EnumMinecartType p_180458_7_) { switch (p_180458_7_) { case CHEST: return new EntityMinecartChest(worldIn, p_180458_1_, p_180458_3_, p_180458_5_); case FURNACE: return new EntityMinecartFurnace(worldIn, p_180458_1_, p_180458_3_, p_180458_5_); case TNT: return new EntityMinecartTNT(worldIn, p_180458_1_, p_180458_3_, p_180458_5_); case SPAWNER: return new EntityMinecartMobSpawner(worldIn, p_180458_1_, p_180458_3_, p_180458_5_); case HOPPER: return new EntityMinecartHopper(worldIn, p_180458_1_, p_180458_3_, p_180458_5_); case COMMAND_BLOCK: return new EntityMinecartCommandBlock(worldIn, p_180458_1_, p_180458_3_, p_180458_5_); default: return new EntityMinecartEmpty(worldIn, p_180458_1_, p_180458_3_, p_180458_5_); } }
@Override public Map<Object, Object> getMinecartData(EntityMinecart cart) { Map<Object, Object> ret = new HashMap<Object, Object>(); if (cart.getClass() == EntityMinecartEmpty.class) { ret.put("__CART_TYPE__", "basic"); ret.put("occupied", cart.riddenByEntity != null); if (cart.riddenByEntity != null) ret.put("username", cart.riddenByEntity.getEntityName()); } else if (cart.getClass() == EntityMinecartChest.class) { ret.put("__CART_TYPE__", "storage"); } else if (cart.getClass() == EntityMinecartFurnace.class) { ret.put("__CART_TYPE__", "furnace"); NBTTagCompound workaround = new NBTTagCompound(); cart.writeToNBT(workaround); ret.put("fuel", workaround.getInteger("Fuel")); } else if (cart.getClass() == EntityMinecartHopper.class) { ret.put("__CART_TYPE__", "hopper"); } else if (cart.getClass() == EntityMinecartTNT.class) { ret.put("__CART_TYPE__", "tnt"); } else if (cart.getClass() == EntityMinecartMobSpawner.class) { ret.put("__CART_TYPE__", "spawner"); } return ret.containsKey("__CART_TYPE__") ? ret : null; }
public static EntityMinecart createMinecart(World p_94090_0_, double p_94090_1_, double p_94090_3_, double p_94090_5_, int p_94090_7_) { switch (p_94090_7_) { case 1: return new EntityMinecartChest(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); case 2: return new EntityMinecartFurnace(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); case 3: return new EntityMinecartTNT(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); case 4: return new EntityMinecartMobSpawner(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); case 5: return new EntityMinecartHopper(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); case 6: return new EntityMinecartCommandBlock(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); default: return new EntityMinecartEmpty(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); } }
public static EntityMinecart func_94090_a(World p_94090_0_, double p_94090_1_, double p_94090_3_, double p_94090_5_, int p_94090_7_) { switch(p_94090_7_) { case 1: return new EntityMinecartChest(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); case 2: return new EntityMinecartFurnace(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); case 3: return new EntityMinecartTNT(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); case 4: return new EntityMinecartMobSpawner(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); case 5: return new EntityMinecartHopper(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); default: return new EntityMinecartEmpty(p_94090_0_, p_94090_1_, p_94090_3_, p_94090_5_); } }
/** * Creates a new minecart of the specified type in the specified location in the given world. par0World - world to * create the minecart in, double par1,par3,par5 represent x,y,z respectively. int par7 specifies the type: 1 for * MinecartChest, 2 for MinecartFurnace, 3 for MinecartTNT, 4 for MinecartMobSpawner, 5 for MinecartHopper and 0 for * a standard empty minecart */ public static EntityMinecart createMinecart(World par0World, double par1, double par3, double par5, int par7) { switch (par7) { case 1: return new EntityMinecartChest(par0World, par1, par3, par5); case 2: return new EntityMinecartFurnace(par0World, par1, par3, par5); case 3: return new EntityMinecartTNT(par0World, par1, par3, par5); case 4: return new EntityMinecartMobSpawner(par0World, par1, par3, par5); case 5: return new EntityMinecartHopper(par0World, par1, par3, par5); default: return new EntityMinecartEmpty(par0World, par1, par3, par5); } }
private void replaceMinecraftCartModel() { try { Field modelMinecart = null; for (Field field : RenderMinecart.class.getDeclaredFields()) { if (ModelBase.class.equals(field.getType())) { modelMinecart = field; break; } } modelMinecart.setAccessible(true); for (Class<?> entityClass : ImmutableList.<Class<?>>of(EntityMinecart.class, EntityMinecartTNT.class, EntityMinecartMobSpawner.class)) { RenderMinecart renderer = (RenderMinecart) RenderManager.instance.entityRenderMap.get(entityClass); modelMinecart.set(renderer, new ModelCartLivery()); } } catch (Exception e) { ModCartLivery.log.warn(I18n.format("message.cartlivery.overwriteModelMinecraftFail")); } }
protected void func_180560_a(EntityMinecartMobSpawner minecart, float partialTicks, IBlockState state) { super.func_180560_a(minecart, partialTicks, state); if (state.getBlock() == Blocks.mob_spawner) { TileEntityMobSpawnerRenderer.renderMob(minecart.func_98039_d(), minecart.posX, minecart.posY, minecart.posZ, partialTicks); } }
/** * Creates a new minecart of the specified type in the specified location in the given world. par0World - world to * create the minecart in, double par1,par3,par5 represent x,y,z respectively. int par7 specifies the type: 1 for * MinecartChest, 2 for MinecartFurnace, 3 for MinecartTNT, 4 for MinecartMobSpawner, 5 for MinecartHopper and 0 for * a standard empty minecart */ public static EntityMinecart createMinecart(World par0World, double par1, double par3, double par5, int par7) { switch (par7) { case 1: return new EntityMinecartChest(par0World, par1, par3, par5); case 2: return new EntityMinecartFurnace(par0World, par1, par3, par5); case 3: return new EntityMinecartTNT(par0World, par1, par3, par5); case 4: return new EntityMinecartMobSpawner(par0World, par1, par3, par5); case 5: return new EntityMinecartHopper(par0World, par1, par3, par5); case 6: return new EntityMinecartCommandBlock(par0World, par1, par3, par5); default: return new EntityMinecartEmpty(par0World, par1, par3, par5); } }
protected void func_147910_a(EntityMinecartMobSpawner p_147911_1_, float p_147911_2_, Block p_147911_3_, int p_147911_4_) { super.func_147910_a(p_147911_1_, p_147911_2_, p_147911_3_, p_147911_4_); if (p_147911_3_ == Blocks.mob_spawner) { TileEntityMobSpawnerRenderer.func_147517_a(p_147911_1_.func_98039_d(), p_147911_1_.posX, p_147911_1_.posY, p_147911_1_.posZ, p_147911_2_); } }
protected void func_147910_a(EntityMinecartMobSpawner p_147910_1_, float p_147910_2_, Block p_147910_3_, int p_147910_4_) { super.func_147910_a(p_147910_1_, p_147910_2_, p_147910_3_, p_147910_4_); if (p_147910_3_ == Blocks.mob_spawner) { TileEntityMobSpawnerRenderer.func_147517_a(p_147910_1_.func_98039_d(), p_147910_1_.posX, p_147910_1_.posY, p_147910_1_.posZ, p_147910_2_); } }
protected void func_98192_a(EntityMinecartMobSpawner p_98192_1_, float p_98192_2_, Block p_98192_3_, int p_98192_4_) { super.func_94144_a(p_98192_1_, p_98192_2_, p_98192_3_, p_98192_4_); if(p_98192_3_ == Block.field_72065_as) { TileEntityMobSpawnerRenderer.func_98144_a(p_98192_1_.func_98039_d(), p_98192_1_.field_70165_t, p_98192_1_.field_70163_u, p_98192_1_.field_70161_v, p_98192_2_); } }
protected void func_98192_a(EntityMinecartMobSpawner par1EntityMinecartMobSpawner, float par2, Block par3Block, int par4) { super.renderBlockInMinecart(par1EntityMinecartMobSpawner, par2, par3Block, par4); if (par3Block == Block.mobSpawner) { TileEntityMobSpawnerRenderer.func_98144_a(par1EntityMinecartMobSpawner.func_98039_d(), par1EntityMinecartMobSpawner.posX, par1EntityMinecartMobSpawner.posY, par1EntityMinecartMobSpawner.posZ, par2); } }
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)); }
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}); } }
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); } }
protected void func_147910_a(EntityMinecart p_147910_1_, float p_147910_2_, Block p_147910_3_, int p_147910_4_) { this.func_147910_a((EntityMinecartMobSpawner)p_147910_1_, p_147910_2_, p_147910_3_, p_147910_4_); }
public SpawnerMinecart() { super(new EntityMinecartMobSpawner(null)); }
protected SpawnerMinecart(EntityMinecartMobSpawner entityMC) { super(entityMC); }
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); } }
EntityMinecartMobSpawnerLogic(EntityMinecartMobSpawner p_i1724_1_) { this.field_98296_a = p_i1724_1_; }
private RenderManager() { this.field_78729_o.put(EntityCaveSpider.class, new RenderCaveSpider()); this.field_78729_o.put(EntitySpider.class, new RenderSpider()); this.field_78729_o.put(EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F)); this.field_78729_o.put(EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F)); this.field_78729_o.put(EntityCow.class, new RenderCow(new ModelCow(), 0.7F)); this.field_78729_o.put(EntityMooshroom.class, new RenderMooshroom(new ModelCow(), 0.7F)); this.field_78729_o.put(EntityWolf.class, new RenderWolf(new ModelWolf(), new ModelWolf(), 0.5F)); this.field_78729_o.put(EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F)); this.field_78729_o.put(EntityOcelot.class, new RenderOcelot(new ModelOcelot(), 0.4F)); this.field_78729_o.put(EntitySilverfish.class, new RenderSilverfish()); this.field_78729_o.put(EntityCreeper.class, new RenderCreeper()); this.field_78729_o.put(EntityEnderman.class, new RenderEnderman()); this.field_78729_o.put(EntitySnowman.class, new RenderSnowMan()); this.field_78729_o.put(EntitySkeleton.class, new RenderSkeleton()); this.field_78729_o.put(EntityWitch.class, new RenderWitch()); this.field_78729_o.put(EntityBlaze.class, new RenderBlaze()); this.field_78729_o.put(EntityZombie.class, new RenderZombie()); this.field_78729_o.put(EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F)); this.field_78729_o.put(EntityMagmaCube.class, new RenderMagmaCube()); this.field_78729_o.put(EntityPlayer.class, new RenderPlayer()); this.field_78729_o.put(EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6.0F)); this.field_78729_o.put(EntityGhast.class, new RenderGhast()); this.field_78729_o.put(EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F)); this.field_78729_o.put(EntityVillager.class, new RenderVillager()); this.field_78729_o.put(EntityIronGolem.class, new RenderIronGolem()); this.field_78729_o.put(EntityBat.class, new RenderBat()); this.field_78729_o.put(EntityDragon.class, new RenderDragon()); this.field_78729_o.put(EntityEnderCrystal.class, new RenderEnderCrystal()); this.field_78729_o.put(EntityWither.class, new RenderWither()); this.field_78729_o.put(Entity.class, new RenderEntity()); this.field_78729_o.put(EntityPainting.class, new RenderPainting()); this.field_78729_o.put(EntityItemFrame.class, new RenderItemFrame()); this.field_78729_o.put(EntityLeashKnot.class, new RenderLeashKnot()); this.field_78729_o.put(EntityArrow.class, new RenderArrow()); this.field_78729_o.put(EntitySnowball.class, new RenderSnowball(Item.field_77768_aD)); this.field_78729_o.put(EntityEnderPearl.class, new RenderSnowball(Item.field_77730_bn)); this.field_78729_o.put(EntityEnderEye.class, new RenderSnowball(Item.field_77748_bA)); this.field_78729_o.put(EntityEgg.class, new RenderSnowball(Item.field_77764_aP)); this.field_78729_o.put(EntityPotion.class, new RenderSnowball(Item.field_77726_bs, 16384)); this.field_78729_o.put(EntityExpBottle.class, new RenderSnowball(Item.field_77809_bD)); this.field_78729_o.put(EntityFireworkRocket.class, new RenderSnowball(Item.field_92104_bU)); this.field_78729_o.put(EntityLargeFireball.class, new RenderFireball(2.0F)); this.field_78729_o.put(EntitySmallFireball.class, new RenderFireball(0.5F)); this.field_78729_o.put(EntityWitherSkull.class, new RenderWitherSkull()); this.field_78729_o.put(EntityItem.class, new RenderItem()); this.field_78729_o.put(EntityXPOrb.class, new RenderXPOrb()); this.field_78729_o.put(EntityTNTPrimed.class, new RenderTNTPrimed()); this.field_78729_o.put(EntityFallingSand.class, new RenderFallingSand()); this.field_78729_o.put(EntityMinecartTNT.class, new RenderTntMinecart()); this.field_78729_o.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner()); this.field_78729_o.put(EntityMinecart.class, new RenderMinecart()); this.field_78729_o.put(EntityBoat.class, new RenderBoat()); this.field_78729_o.put(EntityFishHook.class, new RenderFish()); this.field_78729_o.put(EntityHorse.class, new RenderHorse(new ModelHorse(), 0.75F)); this.field_78729_o.put(EntityLightningBolt.class, new RenderLightningBolt()); Iterator var1 = this.field_78729_o.values().iterator(); while(var1.hasNext()) { Render var2 = (Render)var1.next(); var2.func_76976_a(this); } }
protected void func_94144_a(EntityMinecart p_94144_1_, float p_94144_2_, Block p_94144_3_, int p_94144_4_) { this.func_98192_a((EntityMinecartMobSpawner)p_94144_1_, p_94144_2_, p_94144_3_, p_94144_4_); }
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(Item.snowball)); this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(Item.enderPearl)); this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(Item.eyeOfEnder)); this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(Item.egg)); this.entityRenderMap.put(EntityPotion.class, new RenderSnowball(Item.potion, 16384)); this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(Item.expBottle)); this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(Item.firework)); 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(EntityFallingSand.class, new RenderFallingSand()); 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); } }
/** * Renders the block that is inside the minecart. */ protected void renderBlockInMinecart(EntityMinecart par1EntityMinecart, float par2, Block par3Block, int par4) { this.func_98192_a((EntityMinecartMobSpawner)par1EntityMinecart, par2, par3Block, par4); }
private RenderManager() { this.entityRenderMap.put(EntitySpider.class, new RenderSpider()); this.entityRenderMap.put(EntityCaveSpider.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(EntityVenio.class, new VenioRender(new ModelVenio(), 0.7F)); this.entityRenderMap.put(EntityCyborg.class, new CyborgRender(new ModelCyborg(), 0.7F)); this.entityRenderMap.put(EntityShell.class, new ShellRender(new ModelShell(), 0.3F)); 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(EntityLiving.class, new RenderLiving(new ModelBiped(), 0.5F)); 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(EntityArrow.class, new RenderArrow()); this.entityRenderMap.put(EntitySnowball.class, new RenderSnowball(Item.snowball)); this.entityRenderMap.put(EntityEnderPearl.class, new RenderSnowball(Item.enderPearl)); this.entityRenderMap.put(EntityEnderEye.class, new RenderSnowball(Item.eyeOfEnder)); this.entityRenderMap.put(EntityEgg.class, new RenderSnowball(Item.egg)); this.entityRenderMap.put(EntityPotion.class, new RenderSnowball(Item.potion, 16384)); this.entityRenderMap.put(EntityExpBottle.class, new RenderSnowball(Item.expBottle)); this.entityRenderMap.put(EntityFireworkRocket.class, new RenderSnowball(Item.firework)); 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(EntityFallingSand.class, new RenderFallingSand()); 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(EntityLightningBolt.class, new RenderLightningBolt()); Iterator iterator = this.entityRenderMap.values().iterator(); while (iterator.hasNext()) { Render render = (Render)iterator.next(); render.setRenderManager(this); } }