public IEntityRenderer makeEntityRender(ModelBase modelBase, float shadowSize) { RenderManager rendermanager = Minecraft.getMinecraft().getRenderManager(); RenderSlime renderslime = new RenderSlime(rendermanager); renderslime.mainModel = modelBase; renderslime.shadowSize = shadowSize; return renderslime; }
public LayerSlimeGel(RenderSlime slimeRendererIn) { this.slimeRenderer = slimeRendererIn; }
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); } }
@Override public void registerRenderers() { MiniBosses.logger.log(Level.INFO, "Registering entity renderers..."); RenderingRegistry.registerEntityRenderingHandler(EntityIronZombie.class, new RenderIronZombie(Minecraft.getMinecraft().getRenderManager())); RenderingRegistry.registerEntityRenderingHandler(EntitySuperSlime.class, new RenderSlime(Minecraft.getMinecraft().getRenderManager(), new ModelSlime(16), 0.25F)); RenderingRegistry.registerEntityRenderingHandler(EntityForestGuard.class, new RenderForestGuard(Minecraft.getMinecraft().getRenderManager())); RenderingRegistry.registerEntityRenderingHandler(EntityCrawler.class, new RenderCrawler(Minecraft.getMinecraft().getRenderManager())); RenderingRegistry.registerEntityRenderingHandler(EntityLivingBlock.class, new RenderLivingBlock(Minecraft.getMinecraft().getRenderManager())); RenderingRegistry.registerEntityRenderingHandler(EntityWatcher.class, new RenderWatcher(Minecraft.getMinecraft().getRenderManager())); RenderingRegistry.registerEntityRenderingHandler(EntityFeeder.class, new RenderFeeder(Minecraft.getMinecraft().getRenderManager())); RenderingRegistry.registerEntityRenderingHandler(EntityTombGuard.class, new RenderTombGuard(Minecraft.getMinecraft().getRenderManager())); RenderingRegistry.registerEntityRenderingHandler(EntityInfernoGolem.class, new RenderInfernoGolem(Minecraft.getMinecraft().getRenderManager())); RenderingRegistry.registerEntityRenderingHandler(EntitySprout.class, new RenderSprout(Minecraft.getMinecraft().getRenderManager())); //RenderingRegistry.registerEntityRenderingHandler(EntityStalker.class, new RenderStalker()); MiniBosses.logger.log(Level.INFO, "Finished registering entity renderers!"); MiniBosses.logger.log(Level.INFO, "Registering item/block renderers"); RenderItem renderItem = Minecraft.getMinecraft().getRenderItem(); renderItem.getItemModelMesher().register(Item.getItemFromBlock(MBBlocks.cryptStone), 0, new ModelResourceLocation("minibosses:cryptStone", "inventory")); renderItem.getItemModelMesher().register(Item.getItemFromBlock(MBBlocks.blockSlime), 0, new ModelResourceLocation("minibosses:blockSlime", "inventory")); renderItem.getItemModelMesher().register(Item.getItemFromBlock(MBBlocks.summoningPillar), 0, new ModelResourceLocation("miniBosses:summoningPillar", "inventory")); renderItem.getItemModelMesher().register(MBItems.ingotDarkIron, 0, new ModelResourceLocation("minibosses:ingotDarkIron", "inventory")); renderItem.getItemModelMesher().register(MBItems.ingotInferno, 0, new ModelResourceLocation("minibosses:ingotInferno", "inventory")); renderItem.getItemModelMesher().register(MBItems.darkIronHelm, 0, new ModelResourceLocation("minibosses:darkIronHelm", "inventory")); renderItem.getItemModelMesher().register(MBItems.darkIronChest, 0, new ModelResourceLocation("minibosses:darkIronChest", "inventory")); renderItem.getItemModelMesher().register(MBItems.darkIronLegs, 0, new ModelResourceLocation("minibosses:darkIronLegs", "inventory")); renderItem.getItemModelMesher().register(MBItems.darkIronBoots, 0, new ModelResourceLocation("minibosses:darkIronBoots", "inventory")); renderItem.getItemModelMesher().register(MBItems.feederTooth, 0, new ModelResourceLocation("minibosses:feederTooth", "inventory")); renderItem.getItemModelMesher().register(MBItems.feederSword, 0, new ModelResourceLocation("minibosses:feederSword", "inventory")); renderItem.getItemModelMesher().register(MBItems.infernoHelm, 0, new ModelResourceLocation("minibosses:infernoHelm", "inventory")); renderItem.getItemModelMesher().register(MBItems.infernoChest, 0, new ModelResourceLocation("minibosses:infernoChest", "inventory")); renderItem.getItemModelMesher().register(MBItems.infernoLegs, 0, new ModelResourceLocation("minibosses:infernoLegs", "inventory")); renderItem.getItemModelMesher().register(MBItems.infernoBoots, 0, new ModelResourceLocation("minibosses:infernoBoots", "inventory")); renderItem.getItemModelMesher().register(MBItems.occulus_item, 0, new ModelResourceLocation("minibosses:itemOcculus", "inventory")); renderItem.getItemModelMesher().register(MBItems.medusaEye, 0, new ModelResourceLocation("minibosses:medusaEye", "inventory")); renderItem.getItemModelMesher().register(MBItems.dodgeGem, 0, new ModelResourceLocation("minibosses:dodgeGem", "inventory")); renderItem.getItemModelMesher().register(MBItems.reviveHeart, 0, new ModelResourceLocation("minibosses:reviveHeart", "inventory")); renderItem.getItemModelMesher().register(MBItems.summonScroll, 0, new ModelResourceLocation("minibosses:summonScroll", "inventory")); MiniBosses.logger.log(Level.INFO, "Finished registering item renderers!"); }