public static void registerRenderers() { // Renderer Registry // Renderers for mobs RenderingRegistry.registerEntityRenderingHandler(EntityEnt.class, new RenderEnt(new ModelZombie(), 0.5F)); // The float is the size of the shadow RenderingRegistry.registerEntityRenderingHandler(EntityKotek.class, new RenderBlueSlime(new ModelSlime(0), new ModelSlime(10), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntitySnowCreeper.class, new RenderSnowCreeper(new ModelCreeper(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityIceFairy.class, new RenderIceFairy(new ModelFairy(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityGroundhog.class, new RenderGroundhog(new ModelGroundhog(), 1.0F)); RenderingRegistry.registerEntityRenderingHandler(EntityFurivoli.class, new RenderFurivoli(new ModelFurivoli(), 0.8F)); RenderingRegistry.registerEntityRenderingHandler(EntityKingKotek.class, new RenderKingKotek(new ModelSlime(0), new ModelSlime(40), 1.0F)); RenderingRegistry.registerEntityRenderingHandler(EntityIceQueen.class, new RenderIceQueen(new ModelIceQueen(), 1.0F)); RenderingRegistry.registerEntityRenderingHandler(EntityIceQueenIllusion.class, new RenderIceQueen(new ModelIceQueen(), 1.0F)); // Renderers for throwable entities RenderingRegistry.registerEntityRenderingHandler(EntityFrostShard.class, new RenderFrostShard(SoulItems.FrostShard.get())); }
public ModelRenderer getModelRenderer(ModelBase model, String modelPart) { if (!(model instanceof ModelSlime)) { return null; } else { ModelSlime modelslime = (ModelSlime)model; return modelPart.equals("body") ? (ModelRenderer)Reflector.getFieldValue(modelslime, Reflector.ModelSlime_ModelRenderers, 0) : (modelPart.equals("left_eye") ? (ModelRenderer)Reflector.getFieldValue(modelslime, Reflector.ModelSlime_ModelRenderers, 1) : (modelPart.equals("right_eye") ? (ModelRenderer)Reflector.getFieldValue(modelslime, Reflector.ModelSlime_ModelRenderers, 2) : (modelPart.equals("mouth") ? (ModelRenderer)Reflector.getFieldValue(modelslime, Reflector.ModelSlime_ModelRenderers, 3) : null))); } }
public RenderPinkSlime(RenderManager rendermanagerIn) { super(rendermanagerIn, new ModelSlime(16), 0.25f); this.addLayer(new LayerPinkGel(this)); }
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}); } }
public ModelBase makeModel() { return new ModelSlime(16); }
public RenderSlime(RenderManager p_i47193_1_) { super(p_i47193_1_, new ModelSlime(16), 0.25F); this.addLayer(new LayerSlimeGel(this)); }
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); }
public static void load() { RenderingRegistry.addNewArmourRendererPrefix("5"); RenderingRegistry.addNewArmourRendererPrefix("6"); RenderingRegistry.addNewArmourRendererPrefix("7"); RenderingRegistry.addNewArmourRendererPrefix("8"); RenderingRegistry.addNewArmourRendererPrefix("9"); RenderingRegistry.addNewArmourRendererPrefix("10"); RenderingRegistry.addNewArmourRendererPrefix("11"); RenderingRegistry.addNewArmourRendererPrefix("12"); RenderingRegistry.addNewArmourRendererPrefix("13"); RenderingRegistry.addNewArmourRendererPrefix("14"); RenderingRegistry.addNewArmourRendererPrefix("15"); RenderingRegistry.addNewArmourRendererPrefix("16"); RenderingRegistry.addNewArmourRendererPrefix("17"); RenderingRegistry.addNewArmourRendererPrefix("18"); RenderingRegistry.addNewArmourRendererPrefix("19"); RenderingRegistry.addNewArmourRendererPrefix("20"); RenderingRegistry.addNewArmourRendererPrefix("21"); RenderingRegistry.registerEntityRenderingHandler(EntityVillagerDim.class, new RenderVillagerDim()); RenderingRegistry.registerEntityRenderingHandler(EntityGhastFrozen.class, new RenderGhastFrozen()); RenderingRegistry.registerEntityRenderingHandler(EntitySlimeFrozen.class, new RenderSlimeFrozen(new ModelSlime(16), new ModelSlime(0), 0.25F)); RenderingRegistry.registerEntityRenderingHandler(EntitySnowCube.class, new RenderSnowCube()); RenderingRegistry.registerEntityRenderingHandler(EntityFrozenCube.class, new RenderFrozenCube()); RenderingRegistry.registerEntityRenderingHandler(EntitySlave.class, new RenderSlave()); RenderingRegistry.registerEntityRenderingHandler(EntityStymph.class, new RenderStymph(new ModelStymph(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityCentaure.class, new RenderCentaure(new ModelCentaure(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntitySummonZombie.class, new RenderSummonZombie()); RenderingRegistry.registerEntityRenderingHandler(EntityBossOrc.class, new RenderBossOrc(new ModelRoiOrc(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityOrc.class, new RenderOrc(new ModelOrc(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityMageOrc.class, new RenderMageOrc(new ModelMageOrc(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityLutin.class, new RenderLutin(new ModelLutin(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityGobelin.class, new RenderGobelin(new ModelGobelin(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityArkavon.class, new RenderArkavon(new ModelArkavon(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityMonsterZombie.class, new RenderZombieMonster(new ModelZombieMonster(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityCrocotta.class, new RenderCrocotta(new ModelCrocotta(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityChevalier.class, new RenderChevalier(new ModelChevalier(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityLibellule.class, new RenderLibellule(new ModelLibellule(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityBelier.class, new RenderBelier(new ModelBelier(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityHaunter.class, new RenderHaunter(new ModelHaunter(), 0.7F)); }
public SwetRenderer(RenderManager renderManager) { super(renderManager, new ModelSlime(16), 0.3F); this.addLayer(new SwetLayer(renderManager, this)); }
public SentryRenderer(RenderManager renderManager) { super(renderManager, new ModelSlime(0), 0.3F); this.addLayer(new SentryLayer((ModelSlime) this.getMainModel())); }
public SentryLayer(ModelSlime model) { super(); this.model = model; }
public SwetLayer(RenderManager manager, SwetRenderer render) { this.manager = manager; this.render = render; this.slime = new ModelSlime(0); }
public RendererToxicSludge(RenderManager renderManager) { super(renderManager, new ModelSlime(16), 0.25F); this.addLayer(new LayerToxicSludgeGel(this)); }
public RenderSlime() { super(Minecraft.getMinecraft().getRenderManager(), new ModelSlime(16), 0); this.addLayer(new LayerSlimeGel(this)); }
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); } }
public RenderShadowSlime(){ super(new ModelSlime(16), 0.25F); this.scaleAmount = new ModelSlime(0); }
public RenderShoggoth() { super(new ModelSlime(16), 0.25F); this.scaleAmount = new ModelSlime(0); }
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); } }
@SideOnly(Side.CLIENT) public static void registerRenderers() { // PROJECTILES RenderingRegistry.registerEntityRenderingHandler(EntityArrowCustom.class, new RenderCustomArrow.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityBomb.class, new RenderEntityBomb.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityBombosFireball.class, new RenderSnowballFactory(Items.fire_charge)); RenderingRegistry.registerEntityRenderingHandler(EntityBoomerang.class, new RenderEntityBoomerang.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityCeramicJar.class, new RenderEntityJar.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityCyclone.class, new RenderNothing.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityHookShot.class, new RenderEntityHookShot.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityLeapingBlow.class, new RenderNothing.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityMagicSpell.class, new RenderEntityMagicSpell.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntitySeedShot.class, new RenderSnowballFactory(ZSSItems.dekuNut)); RenderingRegistry.registerEntityRenderingHandler(EntitySwordBeam.class, new RenderEntitySwordBeam.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityThrowingRock.class, new RenderSnowballFactory(ZSSItems.throwingRock)); RenderingRegistry.registerEntityRenderingHandler(EntityWhip.class, new RenderEntityWhip.Factory()); // NATURALLY SPAWNING MOBS RenderingRegistry.registerEntityRenderingHandler(EntityChu.class, new RenderEntityChu.Factory(new ModelSlime(16), 0.25F)); RenderingRegistry.registerEntityRenderingHandler(EntityDarknut.class, new RenderGenericLiving.Factory( new ModelDarknut(), 0.5F, 1.5F, ModInfo.ID + ":textures/entity/darknut_standard.png")); RenderingRegistry.registerEntityRenderingHandler(EntityDekuBaba.class, new RenderDekuBaba.Factory( new ModelDekuBaba(), 0.5F, 1.25F, ModInfo.ID + ":textures/entity/deku_baba.png")); RenderingRegistry.registerEntityRenderingHandler(EntityDekuFire.class, new RenderDekuBaba.Factory( new ModelDekuFire(), 0.5F, 1.25F, ModInfo.ID + ":textures/entity/deku_baba.png")); RenderingRegistry.registerEntityRenderingHandler(EntityDekuWithered.class, new RenderDekuBaba.Factory( new ModelDekuWithered(), 0.5F, 1.25F, ModInfo.ID + ":textures/entity/deku_withered.png")); RenderingRegistry.registerEntityRenderingHandler(EntityFairy.class, new RenderEntityFairy.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityGoron.class, new RenderGenericLiving.Factory( new ModelGoron(), 0.5F, 1.5F, ModInfo.ID + ":textures/entity/goron.png")); RenderingRegistry.registerEntityRenderingHandler(EntityKeese.class, new RenderEntityKeese.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityNavi.class, new RenderEntityFairy.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityOctorok.class, new RenderEntityOctorok.Factory(new ModelOctorok(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntitySkulltula.class, new RenderEntitySkulltula.Factory()); RenderingRegistry.registerEntityRenderingHandler(EntityWizzrobe.class, new RenderEntityWizzrobe.Factory(new ModelWizzrobe(), 1.0F)); // BOSSES RenderingRegistry.registerEntityRenderingHandler(EntityBlackKnight.class, new RenderGenericLiving.Factory( new ModelDarknut(), 0.5F, 1.8F, ModInfo.ID + ":textures/entity/darknut_standard.png")); RenderingRegistry.registerEntityRenderingHandler(EntityGrandWizzrobe.class, new RenderEntityWizzrobe.Factory(new ModelWizzrobe(), 1.5F)); // NPCS RenderingRegistry.registerEntityRenderingHandler(EntityNpcBarnes.class, new RenderGenericLiving.Factory( new ModelBiped(0.0F, 0.0F, 64, 64), 0.5F, 1.0F, ModInfo.ID + ":textures/entity/npc_barnes.png")); RenderingRegistry.registerEntityRenderingHandler(EntityNpcMaskTrader.class, new RenderGenericLiving.Factory( new ModelMaskSalesman(), 0.5F, 1.0F, ModInfo.ID + ":textures/entity/npc_mask_salesman.png")); RenderingRegistry.registerEntityRenderingHandler(EntityNpcOrca.class, new RenderGenericLiving.Factory( new ModelBiped(0.0F, 0.0F, 64, 64), 0.5F, 1.0F, ModInfo.ID + ":textures/entity/npc_orca.png")); RenderingRegistry.registerEntityRenderingHandler(EntityNpcZelda.class, new RenderGenericLiving.Factory( new ModelBiped(0.0F, 0.0F, 64, 64), 0.5F, 1.0F, ModInfo.ID + ":textures/entity/npc_zelda.png")); }
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); } }
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); } }
@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!"); }
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); } }
public RenderBlueSlime (ModelSlime ModelSlime, ModelBase par2ModelBase, float f) { super(ModelSlime, f); this.scaleAmount = par2ModelBase; }
@SideOnly(Side.CLIENT) @Override public void registerRenderers() { // This is for rendering entities and so forth RenderingRegistry.registerEntityRenderingHandler(Ohmu.class, new RenderOhmu(new ModelOhmu(), 0.5f)); RenderingRegistry.registerEntityRenderingHandler(EntityNausicaaVillager.class, new RenderNausicaaVillager(new EntityNausicaaVillager(Minecraft.getMinecraft().theWorld), new ModelNPC(0F), 0.5F)); // RenderingRegistry.registerEntityRenderingHandler(EntityNausicaaVillager.class, new RenderNausicaaVillager(new ModelBiped(0F), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(JungleJelly.class, new RenderJungleJelly(new ModelSlime(0), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityFoxSquirrel.class, new RenderFoxSquirrel(new ModelOcelot(), 0.3F));//only shadowsize //wingspeed, shadowsize, scale RenderingRegistry.registerEntityRenderingHandler(EntitySpore.class, new RenderSpore(new ModelSpore(), 0.0F));//only shadowsize //Dragonfly RenderingRegistry.registerEntityRenderingHandler(Dragonfly.class, new RenderDragonfly(new ModelsmallInsect(), 0.3F));//only shadowsize //wingspeed, shadowsize, scale RenderingRegistry.registerEntityRenderingHandler(EntityBeetle.class, new RenderDragonfly(new ModelsmallInsect(), 0.3F));//only shadowsize //wingspeed, shadowsize, scale RenderingRegistry.registerEntityRenderingHandler(EntityGodWarrior.class, new RenderSimpleGodWarrior(new ModelOhmu(), 10F)); // new RenderGodWarrior(new ModelBiped(), 5F, 5F));//only shadowsize //wingspeed, shadowsize, scale //thin Tree :D //RenderingRegistry.registerBlockHandler(new RenderThinLog()); // Or 'this' if your proxy happens to be the one that implements the block render interface. RenderingRegistry.registerBlockHandler(new RenderText()); // Or 'this' if your proxy happens to be the one that implements the block render interface. //starts the keyhandler (for glider) FMLCommonHandler.instance().bus().register(new MookKeyHandler()); //for poison //CRIT FMLCommonHandler.instance().bus().register(new Poisoner(Minecraft.getMinecraft())); //FMLCommonHandler.instance().bus().register(Main.instance.unpoweredGliderTickHandle); Main.instance.initDebug(); tileEntities(); networkRegisters(); MinecraftForge.EVENT_BUS.register(new NausicaaEventHandler()); }