public static void registerHandlers() { FMLCommonHandler.instance().bus().register(new TickHandlerClient()); FMLCommonHandler.instance().bus().register(new KeyHandlerClient()); ClientRegistry.registerKeyBinding(KeyHandlerClient.galaxyMap); ClientRegistry.registerKeyBinding(KeyHandlerClient.openFuelGui); ClientRegistry.registerKeyBinding(KeyHandlerClient.toggleAdvGoggles); MinecraftForge.EVENT_BUS.register(new ClientProxyCore()); }
@Override public void registerTileEntities() { TileEntityMeteorShieldRayRenderer tileRend = new TileEntityMeteorShieldRayRenderer(); ClientRegistry.registerTileEntity( TileEntityMeteorShield.class, "TileEntityMeteorShield", tileRend); TileEntityMeteorTimerRenderer timerRend = new TileEntityMeteorTimerRenderer(); ClientRegistry.registerTileEntity( TileEntityMeteorTimer.class, "TileEntityMeteorTimer", timerRend); }
@Override public void registerRenderers() { ClientRegistry.bindTileEntitySpecialRenderer( TileEntitySwordStoneInactive.class, new TileEntitySwordStoneInactiveRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntitySwordStoneActive.class, new TileEntitySwordSoneActiveRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntitySwordStoneVulcansRevenge.class, new TileEntitySwordStoneVulcansRevengeRenderer()); }
@Override public void registerRenderInformation() { ClientRegistry.bindTileEntitySpecialRenderer(MCMod.teCarvedDirt, teCarvedDirtRenderer); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(MCMod.blockCarvedDirt), new TECarvedDirtItemRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(GasCO2TileEntity.class, gasRenderer); }
@Override public void registerRenderers() { FlexibleToolRenderer renderer = new FlexibleToolRenderer(); MinecraftForgeClient.registerItemRenderer(TinkersDefense.tool_roundShield, renderer); MinecraftForgeClient.registerItemRenderer(TinkersDefense.tool_heaterShield, renderer); MinecraftForgeClient.registerItemRenderer(TinkersDefense.tool_wrench, renderer); ClientRegistry.bindTileEntitySpecialRenderer( TileEntity_CrestMount.class, new Renderer_CrestMount()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntity_FinishingAnvil.class, new Renderer_ArmorAnvil()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntity_JewelersBench.class, new Renderer_JewelersBench()); }
@Override public void initMod() { super.initMod(); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityDualVertical.class, new TileRendererDualVertical()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityTreadmill.class, new TileRendererTreadmill()); MinecraftForgeClient.registerItemRenderer(Sync.itemBlockPlacer, new RenderBlockPlacerItem()); RenderingRegistry.registerEntityRenderingHandler( EntityShellDestruction.class, new RenderShellDestruction()); }
public void addCombinedRenderer(EnumSignal type, ICombinedRenderer renderer) { addCombinedRenderer(type.ordinal(), renderer); if (renderer instanceof TileEntitySpecialRenderer) { ClientRegistry.bindTileEntitySpecialRenderer( type.getTileClass(), (TileEntitySpecialRenderer) renderer); } }
public void preInit() { ValveRenderer vr = new ValveRenderer(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityValve.class, vr); RenderingRegistry.registerBlockHandler(vr); RenderingRegistry.registerBlockHandler(new TankFrameRenderer()); }
@Override public void registrarRender() { ClientRegistry.bindTileEntitySpecialRenderer( TileEntityBlocoAnimal.class, new TileEntityAnimalRenderer()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(AnimalMagic.blocoAnimal), new ItemBlocoAnimalRenderer()); }
@Override public void init(FMLInitializationEvent event) { super.init(event); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityLight.class, new TileEntityLightRenderer()); }
public KeyHandler() { keys = new KeyBinding[keyValues.length]; for (int i = 0; i < keys.length; i++) { keys[i] = new KeyBinding(keyDesc[i], keyValues[i], "Matter Overdrive"); ClientRegistry.registerKeyBinding(keys[i]); } }
@Override public void preInit(ModUtils mod) { RenderingRegistry.registerEntityRenderingHandler( EntityBrewcraftPotion.class, new RenderBrewcraftPotion()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityBrewery.class, new TileRendererBrewery()); new RenderItemBrewery(Brewcraft.brewing.renderId); }
@Override public void registerHandlers() { super.registerHandlers(); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityWormhole.class, new TileEntityWormholeRenderer()); RenderingRegistry.registerEntityRenderingHandler( EntitySpawnerFireball.class, new RenderFireball(4.0F)); }
public static void init() { liquipackInventoryKey = new KeyBinding("key.liquipackinv", Keyboard.KEY_L, "key.categories.inventory"); ClientRegistry.registerKeyBinding(liquipackInventoryKey); /*liquipackJetpackToggleKey = new KeyBinding("key.liquipackJetpackToggle", Keyboard.KEY_J, "key.categories.movement"); ClientRegistry.registerKeyBinding(liquipackJetpackToggleKey);*/ }
@Override public void registerRenderThings() { MinecraftForgeClient.preloadTexture("/Immunology/Blocks/Plants.png"); MinecraftForgeClient.preloadTexture("/Immunology/Items.png"); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityMedicalResearchTable.class, new TileEntityMedicalResearchTableRenderer()); MinecraftForgeClient.registerItemRenderer( Immunology.blockMedResearchTable.blockID, new ItemMedicalResearchTableRenderer()); }
public void registerTileEntitySpecialRenderer() { TileEntitySpecialRenderer renderWoodenCog = new RenderWoodenCog(); TileEntitySpecialRenderer renderStoneCog = new RenderStoneCog(); TileEntitySpecialRenderer renderIronCog = new RenderIronCog(); TileEntitySpecialRenderer renderWire = new RenderWire(); TileEntitySpecialRenderer renderLeadTank = new RenderLeadTank(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWoodenCog.class, renderWoodenCog); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityStoneCog.class, renderStoneCog); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityIronCog.class, renderIronCog); ClientRegistry.bindTileEntitySpecialRenderer(TileWire.class, renderWire); ClientRegistry.bindTileEntitySpecialRenderer(TileLeadTank.class, renderLeadTank); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(RedoxiationBlocks.StoneCog), new ItemRenderStoneCog(renderStoneCog, new TileEntityStoneCog())); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(RedoxiationBlocks.IronCog), new ItemRenderIronCog(renderIronCog, new TileEntityIronCog())); }
public void registerKeys() { // Register bindings for (KeyBinding key : this.keys) { if (key != null) ClientRegistry.registerKeyBinding(key); } if (Loader.isModLoaded("notenoughkeys")) Api.registerMod(TConstruct.modID, ArmorControls.keyDescs); // Add mc keys this.keys[4] = ArmorControls.jumpKey; this.keys[5] = ArmorControls.invKey; }
@EventHandler public void init(FMLInitializationEvent event) { MinecraftForge.EVENT_BUS.register(this); FMLCommonHandler.instance().bus().register(this); ChromaUtils.register(); this.lobbyCommandConfirmer = new AutoLobbyCommand(); this.showConfig = new KeyBinding("Show Config", Keyboard.KEY_I, KEY_CATEGORY); this.hideHUDKey = new KeyBinding("Hide Info HUD", Keyboard.KEY_O, KEY_CATEGORY); this.hideCoordsKey = new KeyBinding("Hide HUD Coords", Keyboard.KEY_P, KEY_CATEGORY); this.hideArmorHUDKey = new KeyBinding("Hide Armor HUD", Keyboard.KEY_K, KEY_CATEGORY); this.hideEffectHUDKey = new KeyBinding("Hide Effect HUD", Keyboard.KEY_L, KEY_CATEGORY); ClientRegistry.registerKeyBinding(this.showConfig); ClientRegistry.registerKeyBinding(this.hideHUDKey); ClientRegistry.registerKeyBinding(this.hideCoordsKey); ClientRegistry.registerKeyBinding(this.hideArmorHUDKey); ClientRegistry.registerKeyBinding(this.hideEffectHUDKey); }
@Override public void registerRenderers() { ClientRegistry.bindTileEntitySpecialRenderer( TileEntityFermenterBottom.class, new TileEntityRendererFermenterBottom()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityFermenterTop.class, new TileEntityRendererFermenterTop()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityFermenterWhole.class, new TileEntityRendererFermenterWhole()); MinecraftForgeClient.registerItemRenderer( NCblock.fermenterWhole.blockID, new ItemRendererFermenter()); MinecraftForgeClient.registerItemRenderer( NCblock.fermenterBottom.blockID, new ItemRendererFermenter()); MinecraftForgeClient.registerItemRenderer( NCblock.fermenterTop.blockID, new ItemRendererFermenter()); RenderingRegistry.registerEntityRenderingHandler( EntityPyronium.class, new RenderProjectile(NCitem.conglomeratePyronium, 0)); RenderingRegistry.registerEntityRenderingHandler( EntitySiliscene.class, new RenderProjectile(NCitem.conglomerateSiliscene, 0)); }
public void registerRenderThings() { ClientRegistry.bindTileEntitySpecialRenderer( TileEntityStoneChest.class, new TileEntityStoneChestRenderer()); MinecraftForgeClient.registerItemRenderer( MechaniCraft.StoneChest.blockID, new ItemStoneChestRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityCopperChest.class, new TileEntityCopperChestRenderer()); MinecraftForgeClient.registerItemRenderer( MechaniCraft.CopperChest.blockID, new ItemCopperChestRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityIronChest.class, new TileEntityIronChestRenderer()); MinecraftForgeClient.registerItemRenderer( MechaniCraft.IronChest.blockID, new ItemIronChestRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityGoldChest.class, new TileEntityGoldChestRenderer()); MinecraftForgeClient.registerItemRenderer( MechaniCraft.GoldChest.blockID, new ItemGoldChestRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityDiamondChest.class, new TileEntityDiamondChestRenderer()); MinecraftForgeClient.registerItemRenderer( MechaniCraft.DiamondChest.blockID, new ItemDiamondChestRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityObsidianChest.class, new TileEntityObsidianChestRenderer()); MinecraftForgeClient.registerItemRenderer( MechaniCraft.ObsidianChest.blockID, new ItemObsidianChestRenderer()); }
@Override public void registerRenders() { RenderMod.init(); // Block ISBRH renderIsbrh = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(new RenderBlockIsbrh()); // Block TESR ClientRegistry.bindTileEntitySpecialRenderer( TileEntityBlockTesr.class, new TileEntityBlockTesrSpecialRenderer()); renderTesr = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(new TesrRenderInventory()); }
@Override public void registerRenderers() { RenderingRegistry.registerEntityRenderingHandler(EntityVillagerAdult.class, new RenderHuman()); RenderingRegistry.registerEntityRenderingHandler( EntityPlayerChild.class, new RenderHumanSmall()); RenderingRegistry.registerEntityRenderingHandler( EntityVillagerChild.class, new RenderHumanSmall()); RenderingRegistry.registerEntityRenderingHandler( EntityChoreFishHook.class, new RenderFishHook()); RenderingRegistry.addNewArmourRendererPrefix("crown"); RenderingRegistry.addNewArmourRendererPrefix("heircrown"); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTombstone.class, new RenderTombstone()); }
private void registerBlockRenderers() { if (EtFuturum.enableSlimeBlock) RenderingRegistry.registerBlockHandler(new BlockSlimeBlockRender()); if (EtFuturum.enableDoors) RenderingRegistry.registerBlockHandler(new BlockDoorRenderer()); if (EtFuturum.enableBanners) ClientRegistry.bindTileEntitySpecialRenderer( TileEntityBanner.class, new TileEntityBannerRenderer()); if (EtFuturum.enableFancySkulls) ClientRegistry.bindTileEntitySpecialRenderer( TileEntitySkull.class, new TileEntityFancySkullRenderer()); if (EtFuturum.enableChorusFruit) { RenderingRegistry.registerBlockHandler(new BlockEndRodRender()); RenderingRegistry.registerBlockHandler(new BlockChorusFlowerRender()); RenderingRegistry.registerBlockHandler(new BlockChorusPlantRender()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityEndRod.class, new TileEntityEndRodRenderer()); } RenderingRegistry.registerBlockHandler(new BlockChestRenderer()); }
public static void init() { ClientRegistry.bindTileEntitySpecialRenderer( TileHarvesterFrame.class, new RendererHarvesterFrame()); ClientRegistry.bindTileEntitySpecialRenderer( TileHarvesterTrolley.class, new RendererHarvesterTrolley()); ClientRegistry.bindTileEntitySpecialRenderer( TileHydraulicHarvester.class, new RendererHarvesterSource()); ClientRegistry.bindTileEntitySpecialRenderer( TileHydraulicPiston.class, new RendererHydraulicPiston()); ClientRegistry.bindTileEntitySpecialRenderer( TileHydraulicPump.class, new RendererHydraulicPump()); MinecraftForgeClient.registerItemRenderer( Ids.blockHydraulicPiston.act, new RendererHydraulicPistonItem()); MinecraftForgeClient.registerItemRenderer( Ids.blockHydraulicHarvester.act, new RendererHarvesterItem()); MinecraftForgeClient.registerItemRenderer( Ids.blockHarvesterTrolley.act, new RendererHarvesterTrolleyItem()); MinecraftForgeClient.registerItemRenderer( Ids.blockHydraulicHose.act + 256, new RendererHydraulicHoseItem()); MinecraftForgeClient.registerItemRenderer( Ids.blockHydraulicPump.act, new RendererHydraulicPumpItem()); }
public static void registerTileEntityRenderers() { ClientRegistry.bindTileEntitySpecialRenderer( TileEntityAluminumWire.class, new TileEntityAluminumWireRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityTreasureChest.class, new TileEntityTreasureChestRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityParaChest.class, new TileEntityParachestRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityNasaWorkbench.class, new TileEntityNasaWorkbenchRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntitySolar.class, new TileEntitySolarPanelRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityThruster.class, new TileEntityThrusterRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityArclamp.class, new TileEntityArclampRenderer()); }
@Override public void registerItemRenderers() { if (Arrays.binarySearch(BattlegearConfig.disabledRenderers, "spear") < 0) { SpearRenderer spearRenderer = new SpearRenderer(); for (Item spear : BattlegearConfig.spear) { if (spear != null) MinecraftForgeClient.registerItemRenderer(spear, spearRenderer); } } if (Arrays.binarySearch(BattlegearConfig.disabledRenderers, "shield") < 0) { ShieldRenderer shieldRenderer = new ShieldRenderer(); for (Item shield : BattlegearConfig.shield) { if (shield != null) MinecraftForgeClient.registerItemRenderer(shield, shieldRenderer); } } if (Arrays.binarySearch(BattlegearConfig.disabledRenderers, "bow") < 0) MinecraftForgeClient.registerItemRenderer(Items.bow, new BowRenderer()); if (BattlegearConfig.quiver != null && Arrays.binarySearch(BattlegearConfig.disabledRenderers, "quiver") < 0) MinecraftForgeClient.registerItemRenderer(BattlegearConfig.quiver, new QuiverItremRenderer()); if (BattlegearConfig.banner != null && Arrays.binarySearch(BattlegearConfig.disabledRenderers, "flagpole") < 0) { MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(BattlegearConfig.banner), new FlagPoleItemRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityFlagPole.class, new FlagPoleTileRenderer()); } if (Battlegear.debug) { Item it = null; for (Iterator itr = GameData.getItemRegistry().iterator(); itr.hasNext(); it = (Item) itr.next()) { if (it instanceof IHeraldryItem && ((IHeraldryItem) it).useDefaultRenderer()) { MinecraftForgeClient.registerItemRenderer(it, new HeraldryItemRenderer()); } } MinecraftForgeClient.registerItemRenderer( BattlegearConfig.heradricItem, new HeraldryCrestItemRenderer()); } }
@Override public void load() { super.load(); // Renderers cbr = new ConduitBundleRenderer((float) Config.conduitScale); BlockConduitBundle.rendererId = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(cbr); BlockCustomFenceGateRenderer bcfgr = new BlockCustomFenceGateRenderer(); BlockCustomFenceGate.renderId = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(bcfgr); BlockFusedQuartz.renderId = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(new FusedQuartzRenderer()); BlockElectricLight.renderId = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(new ElectricLightRenderer()); CapacitorBankRenderer capr = new CapacitorBankRenderer(); ClientRegistry.bindTileEntitySpecialRenderer(TileCapacitorBank.class, capr); MinecraftForgeClient.registerItemRenderer(EnderIO.blockCapacitorBank.blockID, capr); FusedQuartzFrameRenderer fqfr = new FusedQuartzFrameRenderer(); MinecraftForgeClient.registerItemRenderer(EnderIO.itemFusedQuartzFrame.itemID, fqfr); ItemConduitRenderer itemConRenderer = new ItemConduitRenderer(); MinecraftForgeClient.registerItemRenderer(EnderIO.itemLiquidConduit.itemID, itemConRenderer); MinecraftForgeClient.registerItemRenderer(EnderIO.itemPowerConduit.itemID, itemConRenderer); MinecraftForgeClient.registerItemRenderer(EnderIO.itemRedstoneConduit.itemID, itemConRenderer); MinecraftForgeClient.registerItemRenderer(EnderIO.itemItemConduit.itemID, itemConRenderer); PaintedItemRenderer pir = new PaintedItemRenderer(); MinecraftForgeClient.registerItemRenderer(EnderIO.blockCustomFence.blockID, pir); MinecraftForgeClient.registerItemRenderer(EnderIO.blockCustomFenceGate.blockID, pir); MinecraftForgeClient.registerItemRenderer(EnderIO.blockCustomWall.blockID, pir); MinecraftForgeClient.registerItemRenderer(EnderIO.blockCustomStair.blockID, pir); MinecraftForgeClient.registerItemRenderer(EnderIO.blockCustomSlab.blockID, pir); MinecraftForgeClient.registerItemRenderer( EnderIO.itemMachinePart.itemID, new MachinePartRenderer()); MinecraftForgeClient.registerItemRenderer( EnderIO.itemConduitFacade.itemID, new FacadeRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileConduitBundle.class, cbr); conduitRenderers.add(RedstoneSwitchRenderer.getInstance()); conduitRenderers.add(new LiquidConduitRenderer()); conduitRenderers.add(new PowerConduitRenderer()); conduitRenderers.add(new InsulatedRedstoneConduitRenderer()); conduitRenderers.add(new crazypants.enderio.conduit.item.ItemConduitRenderer()); EnderIoRenderer eior = new EnderIoRenderer(); ClientRegistry.bindTileEntitySpecialRenderer(TileEnderIO.class, eior); MinecraftForgeClient.registerItemRenderer(EnderIO.blockEnderIo.blockID, eior); ClientRegistry.bindTileEntitySpecialRenderer( TileReservoir.class, new ReservoirRenderer(EnderIO.blockReservoir)); HyperCubeRenderer hcr = new HyperCubeRenderer(); ClientRegistry.bindTileEntitySpecialRenderer(TileHyperCube.class, hcr); MinecraftForgeClient.registerItemRenderer(EnderIO.blockHyperCube.blockID, hcr); new YetaWrenchOverlayRenderer(EnderIO.itemYetaWench); // Tick handler if (Config.useSneakMouseWheelYetaWrench) { TickRegistry.registerTickHandler(new YetaWrenchTickHandler(), Side.CLIENT); } }
@Override public void preInit() { super.preInit(); EventUtil.register(ClientTimerHandler.INSTANCE, EventUtil.Type.BOTH); File file = new File(Subsistence.configPath + "foliage.json"); if (file.exists()) { FoliageHandler.initialize(file); } else { FoliageHandler.initialize(null); } AdvancedModelLoader.registerModelHandler(new FixedTechneModelLoader()); // TILE ClientRegistry.bindTileEntitySpecialRenderer(TileTable.class, new RenderTileTable()); ClientRegistry.bindTileEntitySpecialRenderer(TileSieveTable.class, new RenderTileSieveTable()); ClientRegistry.bindTileEntitySpecialRenderer( TileSinteringOven.class, new RenderTileSinteringOven()); ClientRegistry.bindTileEntitySpecialRenderer(TileHammerMill.class, new RenderTileHammerMill()); ClientRegistry.bindTileEntitySpecialRenderer(TileHandCrank.class, new RenderTileCrank()); ClientRegistry.bindTileEntitySpecialRenderer( TileKineticCrank.class, new RenderTileKineticCrank()); ClientRegistry.bindTileEntitySpecialRenderer(TileWaterMill.class, new RenderTileWaterMill()); ClientRegistry.bindTileEntitySpecialRenderer(TileKiln.class, new RenderTileKiln()); ClientRegistry.bindTileEntitySpecialRenderer(TileMetalPress.class, new RenderTileMetalPress()); ClientRegistry.bindTileEntitySpecialRenderer( TileSpawnMarker.class, new RenderTileSpawnMarker()); ClientRegistry.bindTileEntitySpecialRenderer(TileMetalShaft.class, new RenderTileMetalShaft()); ClientRegistry.bindTileEntitySpecialRenderer(TileCompost.class, new RenderTileCompost()); ClientRegistry.bindTileEntitySpecialRenderer(TileBarrel.class, new RenderTileBarrel()); // ITEM MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.table), new RenderItemTable()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.tableSieve), new RenderItemSieveTable()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.sinteringOven), new RenderItemSinteringOven()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.hammerMill), new RenderItemHammerMill()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.kineticCrank), new RenderItemKineticCrank()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.kiln), new RenderItemKiln()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.metalPress), new RenderItemMetalPress()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.spawnMarker), new RenderItemSpawnMarker()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.compost), new RenderItemCompost()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(SubsistenceBlocks.barrel), new RenderItemBarrel()); MinecraftForgeClient.registerItemRenderer( SubsistenceItems.barrelLid, new RenderItemBarrelLid()); }
@Override public void registerKeyBindings() { super.registerKeyBindings(); FMLCommonHandler.instance().bus().register(new PlayerBedEventHandler()); ClientRegistry.registerKeyBinding(Settings.checkMobs); }
@Override public void registerRenderThings() { RenderingRegistry.registerEntityRenderingHandler( EntityBabyGrenade.class, new RenderSnowball(Calculator.baby_grenade)); RenderingRegistry.registerEntityRenderingHandler( EntityGrenade.class, new RenderSnowball(Calculator.grenade)); RenderingRegistry.registerEntityRenderingHandler( EntitySmallStone.class, new RenderSnowball(Calculator.small_stone)); RenderingRegistry.registerEntityRenderingHandler( EntitySoil.class, new RenderSnowball(Calculator.soil)); TileEntitySpecialRenderer plug = new RenderCalculatorPlug(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCalculatorPlug.class, plug); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.calculatorplug), new ItemCalculatorPlug(plug, new TileEntityCalculatorPlug())); TileEntitySpecialRenderer locator = new RenderCalculatorLocator(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCalculatorLocator.class, locator); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.calculatorlocator), new ItemModelRender(locator, new TileEntityCalculatorLocator())); TileEntitySpecialRenderer starch = new RenderHandlers.StarchExtractor(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGenerator.StarchExtractor.class, starch); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.starchextractor), new ItemStarchExtractor(starch, new TileEntityGenerator.StarchExtractor())); TileEntitySpecialRenderer crank = new RenderCrank(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCrankHandle.class, crank); TileEntitySpecialRenderer glowstone = new RenderHandlers.GlowstoneExtractor(); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityGenerator.GlowstoneExtractor.class, glowstone); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.glowstoneextractor), new ItemStarchExtractor(glowstone, new TileEntityGenerator.GlowstoneExtractor())); TileEntitySpecialRenderer redstone = new RenderHandlers.RedstoneExtractor(); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityGenerator.RedstoneExtractor.class, redstone); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.redstoneextractor), new ItemStarchExtractor(redstone, new TileEntityGenerator.RedstoneExtractor())); TileEntitySpecialRenderer atomic = new RenderHandlers.AtomicMultiplier(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAtomicMultiplier.class, atomic); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.atomicMultiplier), new ItemModelRender(atomic, new TileEntityAtomicMultiplier())); TileEntitySpecialRenderer conductor = new RenderHandlers.ConductorMast(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityConductorMast.class, conductor); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.conductorMast), new ItemConductorMask(conductor, new TileEntityConductorMast())); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.conductormastBlock), new ItemConductorMask(conductor, new TileEntityConductorMast())); TileEntitySpecialRenderer lantern = new RenderLantern(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGasLantern.class, lantern); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBasicLantern.class, lantern); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.gas_lantern_off), new ItemLantern(lantern, new TileEntityGasLantern())); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.gas_lantern_on), new ItemLantern(lantern, new TileEntityGasLantern())); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.basic_lantern), new ItemLantern(lantern, new TileEntityBasicLantern())); TileEntitySpecialRenderer scarecrow = new RenderHandlers.Scarecrow(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityScarecrow.class, scarecrow); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.scarecrow), new ItemScarecrow(scarecrow, new TileEntityScarecrow())); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.scarecrowBlock), new ItemScarecrow(scarecrow, new TileEntityScarecrow())); TileEntitySpecialRenderer research = new RenderResearchChamber(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityResearchChamber.class, research); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.researchChamber), new ItemResearchChamber(research, new TileEntityResearchChamber())); TileEntitySpecialRenderer weather = new RenderWeatherStation(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWeatherStation.class, weather); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.weatherStation), new ItemWeatherStation(weather, new TileEntityWeatherStation())); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.weatherStationBlock), new ItemWeatherStation(weather, new TileEntityWeatherStation())); TileEntitySpecialRenderer transmitter = new RenderTransmitter(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTransmitter.class, transmitter); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.transmitter), new ItemTransmitter(transmitter, new TileEntityTransmitter())); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.transmitterBlock), new ItemTransmitter(transmitter, new TileEntityTransmitter())); MinecraftForgeClient.registerItemRenderer( Calculator.endforged_sword, new ItemSword("Calculator:textures/model/end_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.electric_sword, new ItemSword("Calculator:textures/model/electric_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.firediamond_sword, new ItemSword("Calculator:textures/model/firediamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.flawlessdiamond_sword, new ItemSword("Calculator:textures/model/flawless_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.redstone_sword, new ItemSword("Calculator:textures/model/redstone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.weakeneddiamond_sword, new ItemSword("Calculator:textures/model/weakeneddiamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.enrichedgold_sword, new ItemSword("Calculator:textures/model/gold_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforcediron_sword, new ItemSword("Calculator:textures/model/iron_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforced_sword, new ItemSword("Calculator:textures/model/stone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.endforged_shovel, new ItemShovel("Calculator:textures/model/end_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.electric_shovel, new ItemShovel("Calculator:textures/model/electric_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.firediamond_shovel, new ItemShovel("Calculator:textures/model/firediamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.flawlessdiamond_shovel, new ItemShovel("Calculator:textures/model/flawless_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.redstone_shovel, new ItemShovel("Calculator:textures/model/redstone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.weakeneddiamond_shovel, new ItemShovel("Calculator:textures/model/weakeneddiamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.enrichedgold_shovel, new ItemShovel("Calculator:textures/model/gold_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforcediron_shovel, new ItemShovel("Calculator:textures/model/iron_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforced_shovel, new ItemShovel("Calculator:textures/model/stone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.endforged_axe, new ItemAxe("Calculator:textures/model/end_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.electric_axe, new ItemAxe("Calculator:textures/model/electric_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.firediamond_axe, new ItemAxe("Calculator:textures/model/firediamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.flawlessdiamond_axe, new ItemAxe("Calculator:textures/model/flawless_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.redstone_axe, new ItemAxe("Calculator:textures/model/redstone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.weakeneddiamond_axe, new ItemAxe("Calculator:textures/model/weakeneddiamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.enrichedgold_axe, new ItemAxe("Calculator:textures/model/gold_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforcediron_axe, new ItemAxe("Calculator:textures/model/iron_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforced_axe, new ItemAxe("Calculator:textures/model/stone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.endforged_pickaxe, new ItemPickaxe("Calculator:textures/model/end_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.electric_pickaxe, new ItemPickaxe("Calculator:textures/model/electric_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.firediamond_pickaxe, new ItemPickaxe("Calculator:textures/model/firediamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.flawlessdiamond_pickaxe, new ItemPickaxe("Calculator:textures/model/flawless_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.redstone_pickaxe, new ItemPickaxe("Calculator:textures/model/redstone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.weakeneddiamond_pickaxe, new ItemPickaxe("Calculator:textures/model/weakeneddiamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.enrichedgold_pickaxe, new ItemPickaxe("Calculator:textures/model/gold_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforcediron_pickaxe, new ItemPickaxe("Calculator:textures/model/iron_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforced_pickaxe, new ItemPickaxe("Calculator:textures/model/stone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.endforged_hoe, new ItemHoe("Calculator:textures/model/end_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.electric_hoe, new ItemHoe("Calculator:textures/model/electric_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.firediamond_hoe, new ItemHoe("Calculator:textures/model/firediamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.flawlessdiamond_hoe, new ItemHoe("Calculator:textures/model/flawless_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.redstone_hoe, new ItemHoe("Calculator:textures/model/redstone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.weakeneddiamond_hoe, new ItemHoe("Calculator:textures/model/weakeneddiamond_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.enrichedgold_hoe, new ItemHoe("Calculator:textures/model/gold_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforcediron_hoe, new ItemHoe("Calculator:textures/model/iron_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.reinforced_hoe, new ItemHoe("Calculator:textures/model/stone_sword.png")); MinecraftForgeClient.registerItemRenderer( Calculator.wrench, new ItemWrench("Calculator:textures/model/tool.png")); MinecraftForgeClient.registerItemRenderer( Calculator.sickle, new ItemSickle("Calculator:textures/model/tool.png")); TileEntitySpecialRenderer capacitor = new RenderFlawlessCapacitor(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFlawlessCapacitor.class, capacitor); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.flawlessCapacitor), new ItemModelRender(capacitor, new TileEntityFlawlessCapacitor())); TileEntitySpecialRenderer fluxPlug = new RenderFluxPlug(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFluxPlug.class, fluxPlug); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.fluxPlug), new ItemModelRender(fluxPlug, new TileEntityFluxPlug())); TileEntitySpecialRenderer fluxPoint = new RenderFluxPoint(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFluxPoint.class, fluxPoint); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.fluxPoint), new ItemModelRender(fluxPoint, new TileEntityFluxPoint())); TileEntitySpecialRenderer fluxController = new RenderHandlers.FluxController(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFluxController.class, fluxController); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.fluxController), new ItemModelRender(fluxController, new TileEntityFluxController())); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityCalculatorScreen.class, new RenderCalculatorScreen()); TileEntitySpecialRenderer processing = new RenderChamber.Processing(); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityMachines.ProcessingChamber.class, processing); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.processingChamber), new ItemModelRender(processing, new TileEntityMachines.ProcessingChamber())); TileEntitySpecialRenderer extraction = new RenderChamber.Extraction(); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityMachines.ExtractionChamber.class, extraction); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.extractionChamber), new ItemModelRender(extraction, new TileEntityMachines.ExtractionChamber())); TileEntitySpecialRenderer precision = new RenderChamber.Precision(); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityMachines.PrecisionChamber.class, precision); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.precisionChamber), new ItemModelRender(precision, new TileEntityMachines.PrecisionChamber())); TileEntitySpecialRenderer removal = new RenderChamber.Removal(); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityMachines.ReassemblyChamber.class, removal); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.reassemblyChamber), new ItemModelRender(removal, new TileEntityMachines.ReassemblyChamber())); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityMachines.RestorationChamber.class, removal); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.restorationChamber), new ItemModelRender(removal, new TileEntityMachines.RestorationChamber())); TileEntitySpecialRenderer analysing = new RenderAnalysingChamber(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAnalysingChamber.class, analysing); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.analysingChamber), new ItemModelRender(analysing, new TileEntityAnalysingChamber())); TileEntitySpecialRenderer storage = new RenderStorageChamber(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityStorageChamber.class, storage); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.storageChamber), new ItemModelRender(storage, new TileEntityStorageChamber())); TileEntitySpecialRenderer magnetic = new RenderMagneticFlux(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMagneticFlux.class, magnetic); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(Calculator.magneticFlux), new ItemModelRender(magnetic, new TileEntityMagneticFlux())); }