@Override public void preInit() { super.preInit(); GuiWirelessSniffer.loadColours(SaveManager.config().getTag("addon")); TextureUtils.addIconRegister(new RenderWireless()); TextureUtils.addIconRegister(new RemoteTexManager()); TextureUtils.addIconRegister(new TriangTexManager()); PacketCustom.assignHandler(NET_CHANNEL, new WRClientPH()); MapRenderRegistry.registerMapRenderer(ModItems.itemWirelessMap, new WirelessMapRenderer()); RenderingRegistry.registerEntityRenderingHandler(EntityREP.class, manager -> new RenderSnowball<>(manager, itemRep, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityWirelessTracker.class, RenderTracker::new); registerModels(); }
public void registerModels() { ItemModels.register(); //BlockModels.register(); ModelLoader.setCustomStateMapper(ModBlocks.thorns,new StateMap.Builder().ignore(BlockThorns.FACING).build()); ModelLoader.setCustomStateMapper(ModBlocks.brine, new BrineStateMapper()); ModelLoader.setCustomStateMapper(ModBlocks.aqueductWater, new StateMapperBase() { @Override protected ModelResourceLocation getModelResourceLocation(IBlockState state) { return aqueductWaterLocation; } }); RenderingRegistry.registerEntityRenderingHandler(EntityGreatarrow.class, RenderGreatarrow.GREATARROW_RENDER); RenderingRegistry.registerEntityRenderingHandler(EntityYa.class, RenderYa.YA_RENDER); RenderingRegistry.registerEntityRenderingHandler(EntitySpirit.class, manager -> new RenderSpirit(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAncestryBottle.class, manager -> new RenderSnowball<>(manager,ModItems.ancestryBottle,Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityArtifactFrame.class, RenderArtifactFrame.ARTIFACEFRAME_RENDER); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAlchDragon.class, new RenderAlchDragon()); }
public void init(FMLInitializationEvent event) { super.init(event); // ע�ᰴ���¼� FMLCommonHandler.instance().bus().register(new SubscribeKeyListener()); ClientRegistry.registerKeyBinding(SubscribeKeyListener.key_Rewrite); ClientRegistry.registerKeyBinding(SubscribeKeyListener.key_Interact); // ע����Ⱦ�� RenderingRegistry.registerEntityRenderingHandler(EntityBaseball.class, new RenderSnowball(ModItems.Baseball)); RenderingRegistry.registerEntityRenderingHandler(EntityDictionary.class, new RenderSnowball(ModItems.Dictionary)); RenderingRegistry.registerEntityRenderingHandler(EntityBullet.class, new RenderBullet()); RenderingRegistry.registerEntityRenderingHandler(EntityJavelin.class, new RenderJavelin()); RenderingRegistry.registerEntityRenderingHandler(EntityKagariCannon.class, new RenderKagariCannon()); RenderingRegistry.registerBlockHandler(new BlockTrapRenderer()); }
public static void init() { RenderingRegistry.registerEntityRenderingHandler(EntityDodoEgg.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), ARKCraftItems.dodo_egg, Minecraft.getMinecraft() .getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityRaptor.class, new RenderRaptor(new ModelRaptor(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler( EntitySabertooth.class, new RenderSabertooth( new ModelSabertooth(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityDodo.class, new RenderDodo(new ModelDodo(), 0.3F)); RenderingRegistry.registerEntityRenderingHandler( EntityBrontosaurus.class, new RenderBrontosaurus( new ModelBrontosaurus(), 0.5f)); }
@Override public void registerRenderInformation() { RenderingRegistry.registerBlockHandler(new BlockRendererMF()); registerItemRenderer(); RenderingRegistry.registerEntityRenderingHandler(EntityDrake.class, new RenderDrake(new ModelDrake(), 1.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityHound.class, new RenderHound(new ModelHound(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityMinotaur.class, new RenderMinotaur(new ModelMinotaur(), 2F)); RenderingRegistry.registerEntityRenderingHandler(EntitySkeletalKnight.class, new RenderSkeletalKnight(new ModelSkeletalKnight())); RenderingRegistry.registerEntityRenderingHandler(EntityDragonSmall.class, new RenderSmallDragon(new ModelSmallDragon(), 2F)); RenderingRegistry.registerEntityRenderingHandler(EntityFirebreath.class, new RenderFirebreath()); RenderingRegistry.registerEntityRenderingHandler(EntityBasilisk.class, new RenderBasilisk()); RenderingRegistry.registerEntityRenderingHandler(EntityArrowMF.class, new RenderArrowMF()); RenderingRegistry.registerEntityRenderingHandler(EntityShrapnel.class, new RenderShrapnel()); RenderingRegistry.registerEntityRenderingHandler(EntityBoltMF.class, new RenderBoltMF()); RenderingRegistry.registerEntityRenderingHandler(EntityBombThrown.class, new RenderBomb()); RenderingRegistry.registerEntityRenderingHandler(EntityThrownSpear.class, new RenderThrownItem()); RenderingRegistry.registerEntityRenderingHandler(EntityRockSling.class, new RenderSnowball(ItemListMF.misc, ItemListMF.rock)); }
@Override public void init() { RenderingRegistry.registerBlockHandler(new BlockMarbleStairsRenderer()); RenderingRegistry.registerBlockHandler(new BlockMarblePaneRenderer()); RenderingRegistry.registerBlockHandler(new BlockRoadLineRenderer()); RenderingRegistry.registerBlockHandler(new BlockSnakeStoneRenderer()); RenderingRegistry.registerBlockHandler(new BlockNoCTMRenderer()); RenderingRegistry.registerBlockHandler(new BlockSpikesRenderer()); RenderingRegistry.registerBlockHandler(new BlockMarblePillarRenderer()); RenderingRegistry.registerBlockHandler(new BlockEldritchRenderer()); RenderingRegistry.registerBlockHandler(new BlockAdvancedMarbleRenderer()); RenderingRegistry.registerBlockHandler(new BlockCarpetRenderer()); RenderingRegistry.registerBlockHandler(new BlockTexturedOreRenderer()); RenderingRegistry.registerEntityRenderingHandler(EntityCloudInABottle.class, new RenderSnowball(Chisel.itemCloudInABottle)); RenderingRegistry.registerEntityRenderingHandler(EntityBallOMoss.class, new RenderSnowball(Chisel.itemBallOMoss)); MinecraftForgeClient.registerItemRenderer(Chisel.chisel, renderer); // MinecraftForgeClient.registerItemRenderer(Chisel.needle.itemID, renderer); }
@Override public void init() { RenderingRegistry.registerBlockHandler(new BlockMarbleStairsRenderer()); RenderingRegistry.registerBlockHandler(new BlockMarblePaneRenderer()); RenderingRegistry.registerBlockHandler(new BlockRoadLineRenderer()); RenderingRegistry.registerBlockHandler(new BlockSnakeStoneRenderer()); RenderingRegistry.registerBlockHandler(new BlockNoCTMRenderer()); RenderingRegistry.registerBlockHandler(new BlockSpikesRenderer()); RenderingRegistry.registerBlockHandler(new BlockMarblePillarRenderer()); RenderingRegistry.registerBlockHandler(new BlockEldritchRenderer()); RenderingRegistry.registerBlockHandler(new BlockAdvancedMarbleRenderer()); RenderingRegistry.registerBlockHandler(new BlockCarpetRenderer()); RenderingRegistry.registerBlockHandler(new BlockTexturedOreRenderer()); RenderingRegistry.registerEntityRenderingHandler(EntityCloudInABottle.class, new RenderSnowball(Chisel.itemCloudInABottle)); RenderingRegistry.registerEntityRenderingHandler(EntityBallOMoss.class, new RenderSnowball(Chisel.itemBallOMoss)); MinecraftForgeClient.registerItemRenderer(Chisel.chisel.itemID, renderer); // MinecraftForgeClient.registerItemRenderer(Chisel.needle.itemID, renderer); }
@Override public void registerRenderers() { ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPipe.class, new TileEntityRenderPipe()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCable.class, new TileEntityRenderCable()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityShell.class, new TileEntityRenderShell()); MinecraftForgeClient.registerItemRenderer(ModArmour.shell, new CustomItemRenderer(new TileEntityRenderShell(), new TileEntityShell())); RenderingRegistry.registerEntityRenderingHandler(EntityMummy.class, new RenderMummy(new ModelZombie(), 0));; RenderingRegistry.registerEntityRenderingHandler(EntityPirate.class, new RenderPirate(new ModelPirate(), 0));; RenderingRegistry.registerEntityRenderingHandler(EntitySenthant.class, new RenderSenthant(new ModelSenthant(), 0));; RenderingRegistry.registerEntityRenderingHandler(EntityTurtle.class, new RenderTurtle(new ModelTurtle(), 0));; RenderingRegistry.registerEntityRenderingHandler(EntityBear.class, new RenderBear(new ModelBear(), 0));; RenderingRegistry.registerEntityRenderingHandler(EntityPanda.class, new RenderPanda(new ModelBear(), 0));; RenderingRegistry.registerEntityRenderingHandler(EntityGrawquat.class, new RenderGrawquat(new ModelGrawquat(), 0));; RenderingRegistry.registerEntityRenderingHandler(EntityLyekhwrone.class, new RenderLyekhwrone(new ModelLyekhwrone(), 0));; RenderingRegistry.registerEntityRenderingHandler(EntityLyekstone.class, new RenderSnowball(ModItems.lyekstone)); VillagerRegistry.instance().registerVillagerSkin(56329, new ResourceLocation(Reference.MOD_ID, "textures/entity/villager.png")); }
public static void init() { RenderManager rm = Minecraft.getMinecraft().getRenderManager(); RenderItem itemRenderer = Minecraft.getMinecraft().getRenderItem(); rm.entityRenderMap.put(EntityEvolvedEnderman.class, new RenderEvolvedEnderman(rm)); rm.entityRenderMap.put(EntityFrienderman.class, new RenderFrienderman(rm)); rm.entityRenderMap.put(EntityFrienderPearl.class, new RenderSnowball<EntityFrienderPearl>(rm, ModItems.FRIENDER_PEARL, itemRenderer)); rm.entityRenderMap.put(EntityEvolvedEndermite.class, new RenderEvolvedEndermite(rm)); }
@Override public void registerRenderers() { RenderingRegistry.registerEntityRenderingHandler(EntityStoneBall.class, m -> new RenderSnowball(m, ModItems.stone_ball, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityMetalBall.class, m -> new RenderSnowball(m, ModItems.metal_ball, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityEnderBall.class, m -> new RenderSnowball(m, ModItems.ender_ball, Minecraft.getMinecraft().getRenderItem())); }
@Override public void preInit() { MinecraftForge.EVENT_BUS.register(this); RenderingRegistry.registerEntityRenderingHandler(EntityTomato.class, (RenderManager m) -> new RenderSnowball<EntityTomato>(m, EnginationItems.TOMATO, Minecraft.getMinecraft().getRenderItem())); }
private static void registerEntityModels() { RenderingRegistry.registerEntityRenderingHandler(EntityStone.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), ARKCraftItems.stone, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityStoneArrow.class, new RenderStoneArrow()); // RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, // new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), // ARKCraftItems.grenade, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityDodo.class, new RenderDodo(new ModelDodo(), 0.3F)); if (ModuleItemBalance.WEAPONS.SIMPLE_PISTOL) { RenderingRegistry.registerEntityRenderingHandler(EntitySimpleBullet.class, new RenderSimpleBullet()); } if (ModuleItemBalance.WEAPONS.SHOTGUN) { RenderingRegistry.registerEntityRenderingHandler(EntitySimpleShotgunAmmo.class, new RenderSimpleShotgunAmmo()); } if (ModuleItemBalance.WEAPONS.LONGNECK_RIFLE) { RenderingRegistry.registerEntityRenderingHandler(EntitySimpleRifleAmmo.class, new RenderSimpleRifleAmmo()); RenderingRegistry.registerEntityRenderingHandler(EntityTranquilizer.class, new RenderTranquilizer()); } if (ModuleItemBalance.WEAPONS.SPEAR) { RenderingRegistry.registerEntityRenderingHandler(EntitySpear.class, new RenderSpear()); } if (ModuleItemBalance.WEAPONS.FABRICATED_PISTOL) { RenderingRegistry.registerEntityRenderingHandler(EntityAdvancedBullet.class, new RenderAdvancedBullet()); } }
@Override public void registerRenderThings() { RenderingRegistry.registerEntityRenderingHandler(EntityNinjaStar.class, new RenderSnowball(ItemLoader.ItemNinjaStar)); RenderingRegistry.registerEntityRenderingHandler(EntityLuckyEgg.class, new RenderSnowball(ItemLoader.ItemLuckyEgg)); RenderingRegistry.registerEntityRenderingHandler(EntilyPatArrow.class, new RenderPatArrow()); RenderingRegistry.registerEntityRenderingHandler(EntilyJenArrow.class, new RenderJenArrow()); }
@Override public void registerTesrs() { setTileEntityRendererDispatcher(TileEntityDayBarrel.class, new TileEntityDayBarrelRenderer()); setTileEntityRendererDispatcher(TileEntityHeater.class, new TileEntityHeaterRenderer()); setTileEntityRendererDispatcher(TileEntityLeydenJar.class, new TileEntityLeydenJarRender()); setTileEntityRendererDispatcher(TileEntityCompressionCrafter.class, new TileEntityCompressionCrafterRenderer()); setTileEntityRendererDispatcher(SocketScissors.class, new TileEntitySocketRenderer()); setTileEntityRendererDispatcher(SocketLacerator.class, new TileEntitySocketRenderer()); setTileEntityRendererDispatcher(SocketFanturpeller.class, new TileEntitySocketRenderer()); setTileEntityRendererDispatcher(SocketPoweredCrank.class, new TileEntitySocketRenderer()); setTileEntityRendererDispatcher(TileEntityHinge.class, new TileEntityHingeRenderer()); setTileEntityRendererDispatcher(TileEntitySteamShaft.class, new TileEntitySteamShaftRenderer()); setTileEntityRendererDispatcher(TileEntityShaft.class, new TileEntityShaftRenderer()); setTileEntityRendererDispatcher(TileEntityBiblioGen.class, new TileEntityBiblioGenRenderer()); setTileEntityRendererDispatcher(TileEntityMirror.class, new TileEntityMirrorRender()); RenderManager rm = Minecraft.getMinecraft().getRenderManager(); RenderingRegistry.registerEntityRenderingHandler(TileEntityWrathLamp.RelightTask.class, new EmptyRender(rm)); RenderingRegistry.registerEntityRenderingHandler(ServoMotor.class, new RenderServoMotor(rm)); //RenderingRegistry.registerEntityRenderingHandler(StepperEngine.class, new RenderStepperEngine(rm)); RenderingRegistry.registerEntityRenderingHandler(ColossusController.class, new ColossusControllerRenderer(rm)); RenderingRegistry.registerEntityRenderingHandler(EntityPoster.class, new RenderPoster(rm)); RenderingRegistry.registerEntityRenderingHandler(EntityMinecartDayBarrel.class, new RenderMinecartDayBarrel(rm)); RenderingRegistry.registerEntityRenderingHandler(EntityLeafBomb.class, new RenderSnowball<EntityLeafBomb>(rm, Core.registry.leafBomb, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntitySteamGeyser.class, new EmptyRender(rm)); RenderingRegistry.registerEntityRenderingHandler(EntitySparkling.class, new RenderSparkling(rm)); }
@Override public void registerRenders() { AntiItems.registerRenders(); AntiBlocks.registerRenders(); RenderingRegistry.registerEntityRenderingHandler(EntityAntimatter.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), AntiItems.antimatter, Minecraft.getMinecraft().getRenderItem())); }
public void registerRenders() { extraLifter = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(new BlockExtraLifterRenderer()); RenderingRegistry.registerEntityRenderingHandler(EntityBottleEthereal.class, new RenderSnowball(bottleEthereal)); if (Loader.isModLoaded("betterstorage")) AddonBetterStorage.initRenders(); }
public void renderEntity() { RenderingRegistry.registerEntityRenderingHandler(EntityDiamondOre.class, new RenderOres(Blocks.DIAMOND_ORE)); RenderingRegistry.registerEntityRenderingHandler(EntityCoalOre.class, new RenderOres(Blocks.COAL_ORE)); RenderingRegistry.registerEntityRenderingHandler(EntityEmeraldOre.class, new RenderOres(Blocks.EMERALD_ORE)); RenderingRegistry.registerEntityRenderingHandler(EntityGoldOre.class, new RenderOres(Blocks.GOLD_ORE)); RenderingRegistry.registerEntityRenderingHandler(EntityIronOre.class, new RenderOres(Blocks.IRON_ORE)); RenderingRegistry.registerEntityRenderingHandler(EntityLapisOre.class, new RenderOres(Blocks.LAPIS_ORE)); RenderingRegistry.registerEntityRenderingHandler(EntityNetherQuartzOre.class, new RenderOres(Blocks.QUARTZ_ORE)); RenderingRegistry.registerEntityRenderingHandler(EntityRedstoneOre.class, new RenderOres(Blocks.REDSTONE_ORE)); RenderingRegistry.registerEntityRenderingHandler(EntityCup.class, new RenderCup()); RenderingRegistry.registerEntityRenderingHandler(EntityBossTeleporter.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), FakeOres.boss_spawner, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityOresBoss.class, new RenderOresBoss(FakeOres.useOldOresBossModel ? new ModelOresBoss2() : new ModelOresBoss())); }
@Override public void registerRendering() { if (RpgConfig.instance.render3D == true) { MinecraftForgeClient.registerItemRenderer(RpgMastersAddon.beastAxe,new AxeRender()); MinecraftForgeClient.registerItemRenderer(RpgMastersAddon.daggers,new RenderDagger()); MinecraftForgeClient.registerItemRenderer(RpgMastersAddon.beastShield,new LionHeadRenderer(new LionHead(),"subaraki:jewels/lion.png")); } RenderingRegistry.registerEntityRenderingHandler(BullPet.class,new RenderPet()); RenderingRegistry.registerEntityRenderingHandler(SpiderPet.class,new RenderPet()); RenderingRegistry.registerEntityRenderingHandler(BoarPet.class,new RenderPet()); RenderingRegistry.registerEntityRenderingHandler(ChickenPet.class,new RenderPet()); RenderingRegistry.registerEntityRenderingHandler(EntityPetXP.class,new RenderXPOrb()); RenderingRegistry.registerEntityRenderingHandler(EntityTeleportStone.class,new RenderSnowball(Items.feather, 1)); MinecraftForge.EVENT_BUS.register(new SoundManager()); MinecraftForge.EVENT_BUS.register(new ClientTickHandler()); FMLCommonHandler.instance().bus().register(new ClientTickHandler()); WeaponAbility ability = new WeaponAbility(); RpgUtility.registerSpecialAbility(RpgMastersAddon.beastAxe, ability); RpgUtility.registerSpecialAbility(RpgMastersAddon.daggers, ability); }
@Override public void registerRenderers(PixelGalaxyMod pixelGalaxyMod) { RenderingRegistry.registerEntityRenderingHandler(EntitySeedShot.class, new RenderSnowball(PixelGalaxyItems.pixeltrix_PlanterMode_BombSeed)); pixelGalaxyMod.PixelOneSwingmanins.registerRenderers(); pixelGalaxyMod.PixelHumanins.registerRenderers(); pixelGalaxyMod.PixelCowins.registerRenderers(); pixelGalaxyMod.PixelPigins.registerRenderers(); addRenderer(EnderBlock.class, new RenderEnderBlock()); }
@Override public void registerRenderThings() { RenderingRegistry.registerEntityRenderingHandler(EntityTomato.class, new RenderTomato(new ModelDeadlyNightshade(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityCactoid.class, new RenderCactoid(new ModelCactoid(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityCactoid.class, new RenderCactoid(new ModelCactoid(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityAlphaWolf.class, new RenderAlphaWolf(new ModelAlphaWolf(),0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityFCraftFireball.class, new RenderSnowball(Item.fireballCharge)); RenderingRegistry.registerEntityRenderingHandler(EntityFCraftIceBall.class, new RenderSnowball(Item.snowball)); RenderingRegistry.registerEntityRenderingHandler(EntityFCraftPoisonBall.class, new RenderSnowball(Item.slimeBall)); RenderingRegistry.registerEntityRenderingHandler(EntityFCraftDeathBall.class, new RenderSnowball(Item.skull)); RenderingRegistry.registerEntityRenderingHandler(EntityFCraftGeneric.class, new RenderSnowball(Item.melonSeeds)); RenderingRegistry.registerEntityRenderingHandler(EntityFCraftGravityBall.class, new RenderSnowball(Item.enderPearl)); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAltar.class, new RenderEntityAltar()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySocketing.class, new RenderEntitySocketMachine()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityProjectTable.class, new RenderEntityProject()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPortal.class, new RenderEntityPortal()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTest.class, new MyTesr()); RenderingRegistry.registerBlockHandler(2100, RenderDopingStation.INSTANCE); MinecraftForgeClient.registerItemRenderer(FCraftItems.busterSword.itemID, (IItemRenderer)new ItemRenderBusterSword()); MinecraftForgeClient.registerItemRenderer(FCraftItems.fairyTale.itemID, (IItemRenderer)new ItemRenderFairyTale()); MinecraftForge.EVENT_BUS.register(new GuiMana(Minecraft.getMinecraft())); MinecraftForge.EVENT_BUS.register(new GuiExp(Minecraft.getMinecraft())); MinecraftForge.EVENT_BUS.register(new GuiChain(Minecraft.getMinecraft())); KeybindHelper.init(); }
@Override public void init() { RenderingRegistry.registerBlockHandler(new RendererCTM()); RenderingRegistry.registerBlockHandler(new RendererStairs()); RenderingRegistry.registerBlockHandler(new RendererCTMPane()); RenderingRegistry.registerBlockHandler(new RendererRoadLine()); RenderingRegistry.registerBlockHandler(new RendererSnakeStone()); RenderingRegistry.registerBlockHandler(new RendererEldritch()); RenderingRegistry.registerBlockHandler(new RendererLayeredGlow()); RenderingRegistry.registerBlockHandler(new RendererSimpleLayered()); RenderingRegistry.registerBlockHandler(new RendererMultiLayer()); RenderAutoChisel rac = new RenderAutoChisel(); RenderingRegistry.registerBlockHandler(rac); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ChiselBlocks.autoChisel), rac); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAutoChisel.class, rac); RenderCarvableBeacon rcb = new RenderCarvableBeacon(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCarvableBeacon.class, rcb); RenderingRegistry.registerBlockHandler(rcb); BlockCarvableBeacon.renderId = rcb.getRenderId(); RenderPresent rp = new RenderPresent(); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ChiselBlocks.present), rp); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPresent.class, rp); RenderingRegistry.registerEntityRenderingHandler(EntityCloudInABottle.class, new RenderSnowball(ChiselItems.cloudinabottle)); RenderingRegistry.registerEntityRenderingHandler(EntityBallOMoss.class, new RenderSnowball(ChiselItems.ballomoss)); RenderingRegistry.registerEntityRenderingHandler(EntitySmashingRock.class, new RenderSnowball(ChiselItems.smashingrock)); RenderingRegistry.registerEntityRenderingHandler(EntityChiselSnowman.class, new RenderChiselSnowman()); MinecraftForgeClient.registerItemRenderer(ChiselItems.chisel, renderer); MinecraftForgeClient.registerItemRenderer(ChiselItems.diamondChisel, renderer); PlayerSpecials.init(); }
@Override public void Initialize() { MCC.item(_Glowing_Slime.glowingSlimeball); MCC.block(_Glowing_Slime.glowingSlime); MCC.entity(EntityGlowingSlimeball.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), _Glowing_Slime.glowingSlimeball, Minecraft.getMinecraft().getRenderItem())); super.Initialize(); }
private void render() { RenderingRegistry.registerEntityRenderingHandler(EntityJeff.class, new RenderJeff(new ModelJeff(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityJane.class, new RenderJane(new ModelJane(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityPewds.class, new RenderPewds(new ModelBiped(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityCry.class, new RenderCry(new ModelBiped(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityJack.class, new RenderJack(new ModelBiped(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityRake.class, new RenderRake(new ModelRake(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntitySmileDog.class, new RenderSmileDog(new ModelSmileDog(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntitySquidward.class, new RenderSquidward(new ModelSquidward(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntitySeed.class, new RenderSeed(new ModelSeedEater(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityMothman.class, new RenderMoth(new ModelMothman(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityStrider.class, new RenderStrider(new ModelStrider(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityVampireBat.class, new RenderVampireBat()); RenderingRegistry.registerEntityRenderingHandler(EntityStephano.class, new RenderSnowball(CPCItems.stephano, 0)); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLaptop.class, new TileEntityLaptopRenderer()); mc.gameSettings.gammaSetting = -0.3F; }
@Override public void registerItemRender() { RenderingRegistry.registerEntityRenderingHandler(EntityPeaPod.class, new RenderSnowball( PvZ.peaPod)); RenderingRegistry.registerEntityRenderingHandler(EntitySnowPod.class, new RenderSnowball( PvZ.snowPod)); RenderingRegistry.registerEntityRenderingHandler(EntitySunlight.class, new RenderSnowball( PvZ.sunlight)); RenderingRegistry.registerEntityRenderingHandler(EntityMoonlight.class, new RenderSnowball( PvZ.moonlight)); RenderingRegistry.registerEntityRenderingHandler(EntityShroomPod.class, new RenderSnowball( PvZ.shroomPod)); RenderingRegistry.registerEntityRenderingHandler(EntityCreeperPod.class, new RenderSnowball(PvZ.creeperPod)); }
@Override public void registerRenders() { DecayingWorld.overlayGui = new OverhealGUI(); TickRegistry.registerTickHandler(DecayingWorld.overlayGui, Side.CLIENT); RenderingRegistry.registerEntityRenderingHandler(EntitySolidifier.class, new RenderSnowball(DecayingWorld.solidifier)); RenderingRegistry.registerEntityRenderingHandler(EntityLifeBomb.class, new RenderSnowball(DecayingWorld.lifebomb)); RenderingRegistry.registerEntityRenderingHandler(EntityTreant.class, new RenderTreant()); RenderingRegistry.registerEntityRenderingHandler(EntityBlinkDog.class, new RenderBlinkDog()); RenderingRegistry.registerEntityRenderingHandler(EntityEmpyreal.class, new RenderEmpyreal()); RenderingRegistry.registerEntityRenderingHandler(EntityFooDog.class, new RenderFooDog()); }
public void registerRenderers() { RenderingRegistry.registerEntityRenderingHandler(EntitySolidifier.class, new RenderSnowball(DecayingWorld.solidifier)); RenderingRegistry.registerEntityRenderingHandler(EntityLifeBomb.class, new RenderSnowball(DecayingWorld.lifebomb)); RenderingRegistry.registerEntityRenderingHandler(EntityTreant.class, new RenderTreant()); RenderingRegistry.registerEntityRenderingHandler(EntityBlinkDog.class, new RenderBlinkDog()); RenderingRegistry.registerEntityRenderingHandler(EntityEmpyreal.class, new RenderEmpyreal()); RenderingRegistry.registerEntityRenderingHandler(EntityFooDog.class, new RenderFooDog()); }
@Override public void registerRenderers() { // Entity Renderers RenderingRegistry.registerEntityRenderingHandler(EntityBlazeShot.class, new RenderBlazeShot()); RenderingRegistry.registerEntityRenderingHandler(EntityBusterShot.class, new RenderBusterShot()); RenderingRegistry.registerEntityRenderingHandler(EntityConcussiveShot.class, new RenderConcussiveShot()); RenderingRegistry.registerEntityRenderingHandler(EntityEnderShot.class, new RenderEnderShot()); RenderingRegistry.registerEntityRenderingHandler(EntityExorcismShot.class, new RenderExorcismShot()); RenderingRegistry.registerEntityRenderingHandler(EntityNeutralShot.class, new RenderNeutralShot()); RenderingRegistry.registerEntityRenderingHandler(EntitySeekerShot.class, new RenderSeekerShot()); RenderingRegistry.registerEntityRenderingHandler(EntitySandShot.class, new RenderSandShot()); RenderingRegistry.registerEntityRenderingHandler(EntityHolyHandGrenade.class, new RenderThrown(Reference.GRENADE_SPRITE)); RenderingRegistry.registerEntityRenderingHandler(EntitySpecialSnowball.class, new RenderSnowball(Item.snowball)); RenderingRegistry.registerEntityRenderingHandler(EntitySpecialEnderPearl.class, new RenderSnowball(Item.enderPearl)); RenderingRegistry.registerEntityRenderingHandler(EntityGlowingWater.class, new RenderThrown(Reference.WATER_SPRITE)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedSplashAphrodite.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.APHRODITE_META)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedSplashPoison.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.POISON_META)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedSplashHarm.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.ACID_META)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedSplashConfusion.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.CONFUSION_META)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedSplashSlowness.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.SLOWING_META)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedSplashWeakness.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.WEAKNESS_META)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedSplashWither.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.WITHER_META)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedSplashBlindness.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.BLINDING_META)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedSplashRuin.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.RUINATION_META)); RenderingRegistry.registerEntityRenderingHandler(EntityCondensedFertility.class, new RenderThrown(Reference.SPLASH_POTION_SPRITE + PotionData.FERTILIZER_META)); // Item Renderers MinecraftForgeClient.registerItemRenderer(XRItems.handgun.itemID, new ItemRendererHandgun()); // Tile Entity Renderers [none at the moment] }
@Override public void registerRenderers() { RenderingRegistry.registerEntityRenderingHandler(EntityIceball.class, new RenderSnowball(WinterWarMain.iceBall)); RenderingRegistry.registerEntityRenderingHandler(EntityRockySnowBall.class, new RenderSnowball(WinterWarMain.rockySnowBall)); RenderingRegistry.registerEntityRenderingHandler(EntityExplodingSnowball.class, new RenderSnowball(WinterWarMain.explodingSnowBall)); RenderingRegistry.registerEntityRenderingHandler(EntityLaunchedSnowball.class, new RenderSnowball(Item.snowball)); RenderingRegistry.registerEntityRenderingHandler(EntityLaunchedIceball.class, new RenderSnowball(WinterWarMain.iceBall)); RenderingRegistry.registerEntityRenderingHandler(EntityLaunchedRockySnowball.class, new RenderSnowball(WinterWarMain.rockySnowBall)); RenderingRegistry.registerEntityRenderingHandler(EntityLaunchedExplodingSnowball.class, new RenderSnowball(WinterWarMain.explodingSnowBall)); RenderingRegistry.registerEntityRenderingHandler(EntityLaunchedPotato.class, new RenderSnowball(Item.potato)); RenderingRegistry.registerEntityRenderingHandler(EntityHardSnowball.class, new RenderSnowball(Item.snowball)); RenderingRegistry.registerEntityRenderingHandler(EntityLaunchedSlimeball.class, new RenderSnowball(Item.slimeBall)); }
@Override public Render createRenderFor(RenderManager manager) { return new RenderSnowball(manager, DungeonDimension.corruptionslime, Minecraft.getMinecraft().getRenderItem()); }
@Override public void registerRenderThings() { RenderingRegistry.registerEntityRenderingHandler(EntityGiantSnowBall.class, new RenderSnowball(ItemLoader.ItemGiantSnowball)); }
@Override public Render createRenderFor(RenderManager manager) { Minecraft mc = Minecraft.getMinecraft(); return new RenderSnowball(manager, TaleCraftItems.bomb, mc.getRenderItem()); }
@Override public Render<? super Entity> createRenderFor(RenderManager manager) { return new RenderSnowball(manager, Items.FIREWORKS, Minecraft.getMinecraft().getRenderItem()); }
@Override public void registerRenderer(){ //Entities, the 0.5F is the shadow size // Dragons RenderingRegistry.registerEntityRenderingHandler(EntityCreeperDragon.class, new RenderCreeperDragon(new ModelCreeperDragon(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityWildFireDragon.class, new RenderWildFireDragon(new ModelWildFireDragon(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntitySilverDragon.class, new RenderSilverDragon(new ModelSilverDragon(), 0.5F, 0)); // Silver RenderingRegistry.registerEntityRenderingHandler(EntityDracoMortem.class, new RenderDracoMortem(new ModelDracoMortem(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityDracoAqua.class, new RenderDracoMortem(new ModelDracoAqua(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntitySilverDragon.class, new RenderSilverDragon(new ModelSilverDragon(), 0.5F, 1)); // Gold RenderingRegistry.registerEntityRenderingHandler(EntityDracoTenebrosus.class, new RenderDracoTenebrosus(new ModelDracoTenebrosus(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityDracoIgnis.class, new RenderDracoIgnis(new ModelDracoIgnis(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityDracoAquila.class, new RenderDracoAquila(new ModelDracoAquila(), 0.5F)); // Other entities RenderingRegistry.registerEntityRenderingHandler(EntityGuard.class, new RenderGuard(new ModelBiped(), 0.5F)); // RenderingRegistry.registerEntityRenderingHandler(EntityMCSilverDragon.class, new RenderMCSilverDragon()); RenderingRegistry.registerEntityRenderingHandler(EntityBallista.class, new RenderBallista(new ModelBallista(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityCatapult.class, new RenderCatapult(new ModelCatapult(), 0.5F)); // Throwable entities RenderingRegistry.registerEntityRenderingHandler(EntitySpear.class, new RenderSpear()); RenderingRegistry.registerEntityRenderingHandler(EntityMyFireball.class, new RenderSnowball(ModItems.fireball)); RenderingRegistry.registerEntityRenderingHandler(EntityMyExplosive.class, new RenderSnowball(ModItems.explosiveFireball)); RenderingRegistry.registerEntityRenderingHandler(EntityMyRock.class, new RenderSnowball(ModItems.rock)); // Special one for hoard ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTemporaryHoard.class, new TemporaryHoardRenderer()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.temporaryHoard), new ItemRendererTemporaryHoard()); //Items MinecraftForgeClient.registerItemRenderer(ModWeapons.longBow, new BowRender()); MinecraftForgeClient.registerItemRenderer(ModWeapons.crossbow, new CrossbowRender()); MinecraftForgeClient.registerItemRenderer(ModItems.spear, new ItemRendererSpear()); // For when it is held }
@Override public void init(FMLInitializationEvent e) { super.init(e); // Add renderers. final RenderManager renderManager = Minecraft.getMinecraft().getRenderManager(); final RenderItem renderItem = Minecraft.getMinecraft().getRenderItem(); RenderingRegistry.registerEntityRenderingHandler(EntityThrowableSlimeTorch.class, new RenderSnowball(renderManager, ThrowableTorchMod.ITEM_THROWABLE_SLIME_TORCH, renderItem)); RenderingRegistry.registerEntityRenderingHandler(EntityThrowableClayTorch.class, new RenderSnowball(renderManager, ThrowableTorchMod.ITEM_THROWABLE_CLAY_TORCH, renderItem)); RenderingRegistry.registerEntityRenderingHandler(EntityThrowableMagmaTorch.class, new RenderSnowball(renderManager, ThrowableTorchMod.ITEM_THROWABLE_MAGMA_TORCH, renderItem)); // TODO: These are the ones we are supposed to be using, but they don't work like this // RenderingRegistry.registerEntityRenderingHandler(EntityThrowableSlimeTorch.class, // new IRenderFactory<Entity>() { // @Override // public Render<? super Entity> createRenderFor(RenderManager manager) // { // return new RenderSnowball<Entity>(renderManager, ThrowableTorchMod.ITEM_THROWABLE_SLIME_TORCH, renderItem); // } // } // ); // // RenderingRegistry.registerEntityRenderingHandler(EntityThrowableClayTorch.class, // new IRenderFactory<Entity>() // { // @Override // public Render<? super Entity> createRenderFor(RenderManager manager) // { // return new RenderSnowball<Entity>(renderManager, ThrowableTorchMod.ITEM_THROWABLE_CLAY_TORCH, renderItem); // } // } // ); // // RenderingRegistry.registerEntityRenderingHandler(EntityThrowableMagmaTorch.class, // new IRenderFactory<Entity>() { // @Override // public Render<? super Entity> createRenderFor(RenderManager manager) // { // return new RenderSnowball<Entity>(renderManager, ThrowableTorchMod.ITEM_THROWABLE_MAGMA_TORCH, renderItem); // } // } // ); }
private static void registerEntityModels() { RenderingRegistry.registerEntityRenderingHandler(EntityStone.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), ARKCraftItems.rock, Minecraft.getMinecraft() .getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), WeaponModule.items.grenade, Minecraft.getMinecraft() .getRenderItem())); RenderingRegistry.registerEntityRenderingHandler( EntityTranqArrow.class, new RenderTranqArrow()); RenderingRegistry.registerEntityRenderingHandler( EntityStoneArrow.class, new RenderStoneArrow()); RenderingRegistry.registerEntityRenderingHandler( EntityMetalArrow.class, new RenderMetalArrow()); if (ModuleItemBalance.WEAPONS.SIMPLE_PISTOL) { RenderingRegistry.registerEntityRenderingHandler( EntitySimpleBullet.class, new RenderSimpleBullet()); } if (ModuleItemBalance.WEAPONS.SHOTGUN) { RenderingRegistry.registerEntityRenderingHandler( EntitySimpleShotgunAmmo.class, new RenderSimpleShotgunAmmo()); } if (ModuleItemBalance.WEAPONS.LONGNECK_RIFLE) { RenderingRegistry.registerEntityRenderingHandler( EntitySimpleRifleAmmo.class, new RenderSimpleRifleAmmo()); RenderingRegistry.registerEntityRenderingHandler( EntityTranquilizer.class, new RenderTranquilizer()); } if (ModuleItemBalance.WEAPONS.SPEAR) { RenderingRegistry.registerEntityRenderingHandler(EntitySpear.class, new RenderSpear()); } if (ModuleItemBalance.WEAPONS.FABRICATED_PISTOL) { RenderingRegistry.registerEntityRenderingHandler( EntityAdvancedBullet.class, new RenderAdvancedBullet()); } }
@Override public void preInit() { OBJLoader.INSTANCE.addDomain(AbyssalCraft.modid); RenderingRegistry.registerEntityRenderingHandler(EntityEvilpig.class, manager -> new RenderEvilPig(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDepthsGhoul.class, manager -> new RenderDepthsGhoul(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAbyssalZombie.class, manager -> new RenderAbyssalZombie(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityODBPrimed.class, manager -> new RenderODB(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityODBcPrimed.class, manager -> new RenderODBc(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityJzahar.class, manager -> new RenderJzahar(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAbygolem.class, manager -> new RenderAbyssalniteGolem(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDreadgolem.class, manager -> new RenderDreadedAbyssalniteGolem(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDreadguard.class, manager -> new RenderDreadguard(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDragonMinion.class, manager -> new RenderDragonMinion(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDragonBoss.class, manager -> new RenderDragonBoss(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityPSDLTracker.class, manager -> new RenderSnowball(manager, ACItems.powerstone_tracker, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityShadowCreature.class, manager -> new RenderShadowCreature(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityShadowMonster.class, manager -> new RenderShadowMonster(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDreadling.class, manager -> new RenderDreadling(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDreadSpawn.class, manager -> new RenderDreadSpawn(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDemonPig.class, manager -> new RenderDemonPig(manager)); RenderingRegistry.registerEntityRenderingHandler(EntitySkeletonGoliath.class, manager -> new RenderSkeletonGoliath(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityChagarothSpawn.class, manager -> new RenderChagarothSpawn(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityChagarothFist.class, manager -> new RenderChagarothFist(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityChagaroth.class, manager -> new RenderChagaroth(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityShadowBeast.class, manager -> new RenderShadowBeast(manager)); RenderingRegistry.registerEntityRenderingHandler(EntitySacthoth.class, manager -> new RenderSacthoth(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityRemnant.class, manager -> new RenderRemnant(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityOmotholGhoul.class, manager -> new RenderOmotholGhoul(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityCoraliumArrow.class, manager -> new RenderCoraliumArrow(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityGatekeeperMinion.class, manager -> new RenderGatekeeperMinion(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityGreaterDreadSpawn.class, manager -> new RenderGreaterDreadSpawn(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityLesserDreadbeast.class, manager -> new RenderLesserDreadbeast(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDreadSlug.class, manager -> new RenderSnowball(manager, ACItems.dread_fragment, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityLesserShoggoth.class, manager -> new RenderLesserShoggoth(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityEvilCow.class, manager -> new RenderEvilCow(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityEvilChicken.class, manager -> new RenderEvilChicken(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDemonCow.class, manager -> new RenderDemonCow(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDemonChicken.class, manager -> new RenderDemonChicken(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityGatekeeperEssence.class, manager -> new RenderEntityItem(manager, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityEvilSheep.class, manager -> new RenderEvilSheep(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityDemonSheep.class, manager -> new RenderDemonSheep(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityCoraliumSquid.class, manager -> new RenderCoraliumSquid(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityInkProjectile.class, manager -> new RenderSnowball(manager, Items.DYE, Minecraft.getMinecraft().getRenderItem())); RenderingRegistry.registerEntityRenderingHandler(EntityDreadedCharge.class, manager -> new RenderDreadedCharge(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiAbyssalZombie.class, manager -> new RenderAntiAbyssalZombie(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiBat.class, manager -> new RenderAntiBat(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiChicken.class, manager -> new RenderAntiChicken(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiCow.class, manager -> new RenderAntiCow(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiCreeper.class, manager -> new RenderAntiCreeper(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiGhoul.class, manager -> new RenderAntiGhoul(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiPig.class, manager -> new RenderAntiPig(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiPlayer.class, manager -> new RenderAntiPlayer(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiSkeleton.class, manager -> new RenderAntiSkeleton(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiSpider.class, manager -> new RenderAntiSpider(manager)); RenderingRegistry.registerEntityRenderingHandler(EntityAntiZombie.class, manager -> new RenderAntiZombie(manager)); MinecraftForge.EVENT_BUS.register(new AbyssalCraftClientEventHooks()); staff_mode = new KeyBinding("key.staff_mode.desc", Keyboard.KEY_M, "key.abyssalcraft.category"); ClientRegistry.registerKeyBinding(staff_mode); }
@Override public Render<? super Entity> createRenderFor(RenderManager manager) { return new RenderSnowball<Entity>(manager, this.item, Minecraft.getMinecraft().getRenderItem()); }
@Override public Render<? super EntityIronNugget> createRenderFor(RenderManager manager) { return new RenderSnowball(manager, Items.IRON_NUGGET, Minecraft.getMinecraft().getRenderItem()); }
@Override public Render<? super EntityGoldNugget> createRenderFor(RenderManager manager) { return new RenderSnowball(manager, Items.GOLD_NUGGET, Minecraft.getMinecraft().getRenderItem()); }
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); } }