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()); } if (EtFuturum.enableColourfulBeacons) ClientRegistry.bindTileEntitySpecialRenderer(TileEntityNewBeacon.class, new TileEntityNewBeaconRenderer()); RenderingRegistry.registerBlockHandler(new BlockChestRenderer()); }
public static void load() { KEY_GENERATE = new KeyBinding("key.GENERATE", Keyboard.KEY_O, "key.categories.magiccrusade"); ClientRegistry.registerKeyBinding(KEY_GENERATE); KEY_STATS = new KeyBinding("key.stats", Keyboard.KEY_P, "key.categories.magiccrusade"); ClientRegistry.registerKeyBinding(KEY_STATS); KEY_GROUP = new KeyBinding("key.group", Keyboard.KEY_G, "key.categories.magiccrusade"); ClientRegistry.registerKeyBinding(KEY_GROUP); KEY_SELECT_CLASSE = new KeyBinding("key.select_classe", Keyboard.KEY_I, "key.categories.magiccrusade"); ClientRegistry.registerKeyBinding(KEY_SELECT_CLASSE); KEY_SELECT_RACE = new KeyBinding("key.select_race", Keyboard.KEY_U, "key.categories.magiccrusade"); ClientRegistry.registerKeyBinding( KEY_SELECT_RACE); KEY_SPELLS = new KeyBinding[10]; for (int i = 0; i < 10; i++) { KEY_SPELLS[i] = new KeyBinding("key.spells_" + i, Keyboard.KEY_NUMPAD1 + i, "key.categories.magiccrusade"); ClientRegistry.registerKeyBinding(KEY_SPELLS[i]); } }
@Override public void init(FMLInitializationEvent e) { super.init(e); Register.registerGlobalEntityID(EntityLaser.class, "laser"); Register.registerEntityRenderingHandler(EntityLaser.class, new RenderLaser()); Register.registerItemRenderer(RorysMod.items.rifle1, new RenderRifle()); Register.registerItemRenderer(RorysMod.items.rifle2, new RenderRifle()); Register.registerItemRenderer(RorysMod.items.rifle3, new RenderRifle()); Register.registerItemRenderer(RorysMod.items.rifle4, new RenderRifle()); Register.registerItemRenderer(RorysMod.items.rifle5, new RenderRifle()); TileEntitySpecialRenderer render = new RenderRifleTable(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRifleTable.class, render); Register.registerItemRenderer(Item.getItemFromBlock(RorysMod.blocks.upgradeTable), new ItemRender(render, new TileEntityRifleTable())); render = new RenderPoweredChest(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPoweredChest.class, render); FMLInterModComms.sendMessage("Waila", "register", WailaConfig.class.getName() + ".callbackRegister"); }
@Override public void initRenders() { RenderIds.campfire = RenderingRegistry.getNextAvailableRenderId(); ClientRegistry.bindTileEntitySpecialRenderer(TileCampfire.class, new TileRenderCampfire()); ClientRegistry.bindTileEntitySpecialRenderer(TileHardJug.class, new TileRenderJug()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.hardjug), new ItemRenderJug()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.campfire), new ItemRenderCampfire()); // ClientRegistry.bindTileEntitySpecialRenderer(TileCampfire.class, new TileRenderCampfire()); if(Loader.isModLoaded("NotEnoughItems")) { } }
@Override public void registerTileEntitiesRenderers() { ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLargePowerLine.class, new LargePowerLineRenderer()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(PowerLinesMod.blocks.largePowerLine), new LargePowerLineItemRenderer() ); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySubStation.class, new SubStationRenderer()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(PowerLinesMod.blocks.subStation), new SubStationItemRenderer() ); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMediumPowerLine.class, new MediumPowerLineRenderer()); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(PowerLinesMod.blocks.mediumPowerLine), new MediumPowerLineItemRenderer() ); }
private void registerRenderers() { MinecraftForge.EVENT_BUS.register(new LineRenderer(Minecraft.getMinecraft())); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTransporter.class, new TransporterRenderer()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.transporter), new TransporterItemRenderer()); MinecraftForgeClient.registerItemRenderer(ModItems.redLED, new UpgradeItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.RED_LED))); MinecraftForgeClient.registerItemRenderer(ModItems.blueLED, new UpgradeItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.BLUE_LED))); MinecraftForgeClient.registerItemRenderer(ModItems.greenLED, new UpgradeItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.GREEN_LED))); MinecraftForgeClient.registerItemRenderer(ModItems.itemCore, new CoreItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.ITEM_CRYSTAL))); MinecraftForgeClient.registerItemRenderer(ModItems.fluidCore, new CoreItemRenderer(ResourceLocationHelper.getResourceLocation(Names.Models.FLUID_CRYSTAL))); }
public void registerRenderers() { try { Field blockRendererField = RenderingRegistry.class.getDeclaredField("blockRenderers"); blockRendererField.setAccessible(true); blockRenderers = (Map)blockRendererField.get(RenderingRegistry.instance()); } catch (Throwable t) {} BetterBarrels.blockBarrelRendererID = RenderingRegistry.getNextAvailableRenderId(); while (blockRenderers.containsKey(Integer.valueOf(BetterBarrels.blockBarrelRendererID))) { BetterBarrels.blockBarrelRendererID = RenderingRegistry.getNextAvailableRenderId(); } RenderingRegistry.registerBlockHandler(BetterBarrels.blockBarrelRendererID, new BlockBarrelRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBarrel.class, new TileEntityBarrelRenderer()); }
@Override public void initRenderingAndTextures() { FMLCommonHandler.instance().bus().register(new ClientTickHandler()); RenderIds.mechanicalRoot = RenderingRegistry.getNextAvailableRenderId(); RenderIds.rotaryShaft = RenderingRegistry.getNextAvailableRenderId(); RenderIds.windTurbine = RenderingRegistry.getNextAvailableRenderId(); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.mechanicalRoot), new ItemRendererMechanicalRoot()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.rotaryShaft), new ItemRendererRotaryShaft()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.windTurbine), new ItemRendererWindTurbine()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMechanicalRoot.class, new TileEntityRendererMechanicalRoot()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRotaryShaft.class, new TileEntityRendererRotaryShaft()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityWindTurbine.class, new TileEntityRendererWindTurbine()); }
@Override public void init() { super.init(); String[] types = new String[]{"Helmet", "Chestplate", "Leggings", "Boots"}; for (int i = 0; i < types.length; i++) LanguageRegistry.instance().addStringLocalization( "item.armorEnder" + i + ".name", String.format("Ender-Infused %s", types[i])); FMLCommonHandler.instance().bus().register(this); MinecraftForge.EVENT_BUS.register(this); for (KeyBinding binding : allBindings) ClientRegistry.registerKeyBinding(binding); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHMS.class, new HMSTESR()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock( EACommonProxy.blockHMS), new ItemRendererHMS()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRockExterminator.class, new RockExterminatorTESR()); //MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock( // EACommonProxy.blockRockExterminator), new ItemRendererRockExterminator()); MinecraftForgeClient.registerItemRenderer(EACommonProxy.itemWarpGem, new ItemRendererWarpGem()); }
public void doTheRenderThing(){ RenderingRegistry.registerEntityRenderingHandler(EntityFrankenstein.class, new RenderFrankenstein()); RenderingRegistry.registerEntityRenderingHandler(EntityWarhorse.class, new RenderWarhorse()); RenderingRegistry.registerEntityRenderingHandler(EntityPeep.class, new RenderPeep()); RenderingRegistry.registerEntityRenderingHandler(EntityUnicorn.class, new RenderUnicorn()); RenderingRegistry.registerEntityRenderingHandler(EntityCalavera.class, new RenderCalavera()); RenderingRegistry.registerEntityRenderingHandler(EntityGingerbread.class, new RenderGingerbread()); RenderingRegistry.registerEntityRenderingHandler(EntityShoggoth.class, new RenderShoggoth()); RenderingRegistry.registerEntityRenderingHandler(EntityDaySkeleton.class, new RenderSkeleton()); RenderingRegistry.registerEntityRenderingHandler(EntityDayZombie.class, new RenderZombie()); RenderingRegistry.registerEntityRenderingHandler(EntityShadowSlime.class, new RenderShadowSlime()); RenderingRegistry.registerEntityRenderingHandler(EntityCandySheep.class, new RenderCandySheep(new ModelSheep2(), new ModelSheep1(), 0.7F)); RenderingRegistry.registerEntityRenderingHandler(EntityOldEnderman.class, new RenderOldEnderman()); if(Config.heads && !Loader.isModLoaded("foxlib")){ TileEntityRendererDispatcher.instance.mapSpecialRenderers.remove(TileEntitySkull.class); BlockSkullRenderer blockSkullRenderer = new BlockSkullRenderer(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkull.class, blockSkullRenderer); } ClientRegistry.bindTileEntitySpecialRenderer(TileEntityChestRidiculous.class, new RenderTileEntityChest()); BlockChestRidiculous.render = RenderingRegistry.getNextAvailableRenderId(); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RidiculousBlocks.chest), new RenderItemChest()); ShaderHelper.initShaders(); }
@Override public void registerRendering() { //ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPalladiumWire.class, new QmRenderPalladiumWire()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPalladiumWire.class, new RenderPalladiumWire()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPotionDispencer.class, new RenderPotionDispencer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCreativeEnergyCell.class, new RenderEnergyCell("CREATIVE")); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBasicEnergyCell.class, new RenderEnergyCell("BASIC")); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.palladiumWire), ItemRenderPalladiumWire.instance); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.potionDispencer), ItemRenderPotionDispencer.instance); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.creativeEnergyCell), ItemRenderEnergyCell.instanceCreative); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.basicEnergyCell), ItemRenderEnergyCell.instanceBasic); }
public void registerTileEntities() { EntitylistMF.init(); ClientRegistry.registerTileEntity(TileEntityLantern.class, "MFLantern",new TileEntityLanternRenderer()); ClientRegistry.registerTileEntity(TileEntityBellows.class, "Bellows", new TileEntityBellowsRenderer()); ClientRegistry.registerTileEntity(TileEntityDogBowl.class, "Dogbowl", new TileEntityDogbowlRenderer()); ClientRegistry.registerTileEntity(TileEntityAnvil.class, "Anvil",new TileEntityAnvilRenderer()); ClientRegistry.registerTileEntity(TileEntitySmelter.class, "Bloom",new TileEntitySmelterRenderer()); ClientRegistry.registerTileEntity(TileEntityForge.class, "Forge",new TileEntityForgeRenderer()); ClientRegistry.registerTileEntity(TileEntityTanningRack.class, "Tanner",new TileEntityTanningRackRenderer()); ClientRegistry.registerTileEntity(TileEntityWeaponRack.class, "Rack",new TileEntityWeaponRackRenderer()); GameRegistry.registerTileEntity(TileEntityBFurnace.class, "Blastfurnace"); ClientRegistry.registerTileEntity(TileEntityTripHammer.class, "MFTripHammer", new TileEntityTripHammerRenderer()); ClientRegistry.registerTileEntity(TileEntityRoast.class, "MFSpitRoast",new TileEntityRoastRenderer()); ClientRegistry.registerTileEntity(TileEntityFurnaceMF.class, "MFFurnace", new TileEntityFurnaceRendererMF()); ClientRegistry.registerTileEntity(TileEntityPrepBlock.class, "MFFoodPrep", new TileEntityFoodPrepRenderer()); ClientRegistry.registerTileEntity(TileEntityTailor.class, "MFTailor", new TileEntityTailorRenderer()); ClientRegistry.registerTileEntity(TileEntitySpinningWheel.class, "MFSpinningWheel", new TileEntitySpinningWheelRenderer()); ClientRegistry.registerTileEntity(TileEntityFirepit.class, "firepitMF", new TileEntityFirepitRenderer()); ClientRegistry.registerTileEntity(TileEntityOven.class, "ovenMF", new TileEntityOvenRenderer()); GameRegistry.registerTileEntity(TileEntityRoad.class, "roadMF"); }
@Override public void registerTileEntities() { TileEntityIC2ThermoRenderer renderThermalMonitor = new TileEntityIC2ThermoRenderer(); TileEntityRemoteThermoRenderer renderRemoteThermo = new TileEntityRemoteThermoRenderer(); TileEntityInfoPanelRenderer renderInfoPanel = new TileEntityInfoPanelRenderer(); ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityThermo.class, "IC2Thermo", renderThermalMonitor); GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityHowlerAlarm.class, "IC2HowlerAlarm"); GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityIndustrialAlarm.class, "IC2IndustrialAlarm"); ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRemoteThermo.class, "IC2RemoteThermo", renderRemoteThermo); ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel.class, "IC2NCInfoPanel", renderInfoPanel); ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanelExtender.class, "IC2NCInfoPanelExtender", renderInfoPanel); ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAdvancedInfoPanel.class, "IC2NCAdvancedInfoPanel", renderInfoPanel); ClientRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAdvancedInfoPanelExtender.class, "IC2NCAdvancedInfoPanelExtender", renderInfoPanel); GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityEnergyCounter.class, "IC2NCEnergyCounter"); GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAverageCounter.class, "IC2NCAverageCounter"); GameRegistry.registerTileEntity(shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityRangeTrigger.class, "IC2NCRangeTrigger"); int modelId = RenderingRegistry.getNextAvailableRenderId(); IC2NuclearControl.instance.modelId = modelId; RenderingRegistry.registerBlockHandler(new MainBlockRenderer(modelId)); }
public void registerRenderers(){ TileEntitySpecialRenderer render = new RenderElectricEngine(); TileEntitySpecialRenderer render2 = new RenderOilEngine(); TileEntitySpecialRenderer render3 = new RenderOilPump(); TileEntitySpecialRenderer render4 = new RenderLiquidTank(); TileEntitySpecialRenderer render5 = new RenderFluidPipe(); TileEntitySpecialRenderer render6 = new RenderElectricPipe(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElectricEngine.class, render); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityOilEngine.class, render2); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityOilPump.class, render3); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFluidPipe.class, render5); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLiquidTank.class, render4); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElectricPipe.class, render6); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.electricEngine), new ItemRendererElectricEngine(render, new TileEntityElectricEngine())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.oilEngine), new ItemRendererOilEngine(render2, new TileEntityOilEngine())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.oilPump), new ItemRendererOilPump(render3, new TileEntityOilPump())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.liquidTank), new ItemRendererLiquidTank(render4, new TileEntityLiquidTank())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.fluidPipe), new ItemRendererFluidPipe(render5, new TileEntityFluidPipe())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TectoCraft.electricPipe), new ItemRendererElectricPipe(render6, new TileEntityElectricPipe())); MinecraftForgeClient.registerItemRenderer(TectoCraft.minigun, new ItemRenderMinigun()); MinecraftForgeClient.registerItemRenderer(TectoCraft.iphone6, new ItemRenderIphone6()); MinecraftForgeClient.registerItemRenderer(TectoCraft.nethersBane, new ItemRenderNethersBane()); MinecraftForgeClient.registerItemRenderer(TectoCraft.tectonicMultitool, new ItemRenderTectoMultitool()); }
public static void initMod() { MinecraftForgeClient.registerItemRenderer(ModItems.bioCrystal, new ItemRendererBioCrystal()); MinecraftForgeClient.registerItemRenderer(ModItems.infusedHoe, new ItemRendererInfusedHoe()); MinecraftForgeClient.registerItemRenderer(ModItems.infusedHoeOne, new ItemRendererInfusedHoe()); TileEntitySpecialRenderer render = new BlockRendererBioGenerator(); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.bioGen), new ItemRendererBioGenerator(render, new TileEntityBioGenerator())); TileEntitySpecialRenderer render1 = new BlockRendererBioInfuser(); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.bioInfuser), new ItemRendererBioInfuser(render1, new TileEntityBioInfuser())); TileEntitySpecialRenderer render2 = new BlockRendererBioExtractor(); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.bioExtractor), new ItemRendererBioExtractor(render2, new TileEntityBioExtractor())); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBioGenerator.class, new BlockRendererBioGenerator()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBioInfuser.class, new BlockRendererBioInfuser()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBioExtractor.class, new BlockRendererBioExtractor()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBioPipe.class, new TileEntityRendererPipe()); }
@Override public void registerRenderers() { RenderingRegistry.registerEntityRenderingHandler(EntityShip.class, new RenderShip()); RenderingRegistry.registerEntityRenderingHandler(EntityParachute.class, new RenderParachute()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityGauge.class, new TileEntityGaugeRenderer()); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityHelm.class, new TileEntityModelHelmRenderer() ); ClientRegistry.bindTileEntitySpecialRenderer( TileEntityEngine.class, new TileEntityModelEngineRenderer() ); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock( ArchimedesShipMod.blockMarkShip ), new ItemModelHelmRenderer( new TileEntityModelHelmRenderer(), new TileEntityHelm() ) ); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock( ArchimedesShipMod.blockEngine ), new ItemModelEngineRenderer( new TileEntityModelEngineRenderer(), new TileEntityEngine() ) ); //ClientRegistry.bindTileEntitySpecialRenderer(TileEntityHelm.class, new TileEntityHelmRenderer()); BlockGauge.gaugeBlockRenderID = RenderingRegistry.getNextAvailableRenderId(); BlockSeat.seatBlockRenderID = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(BlockSeat.seatBlockRenderID, new RenderBlockSeat()); RenderingRegistry.registerBlockHandler(BlockGauge.gaugeBlockRenderID, new RenderBlockGauge()); }
public void registerRenderThings() { TileEntitySpecialRenderer render = new RenderElderFurnace(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElderFurnace.class, render); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(UtilModule.ElderFurnace), new ItemRenderElderFurnace(render, new TileEntityElderFurnace())); TileEntitySpecialRenderer render2 = new RenderPylonCrystal(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPylonCrystal.class, render2); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(UtilModule.PylonCrystal), new ItemRenderPylonCrystal(render2, new TileEntityPylonCrystal())); TileEntitySpecialRenderer render3 = new RenderResearchTable(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityResearchTable.class, render3); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(UtilModule.ResearchTable), new ItemRenderResearchTable(render3, new TileEntityResearchTable())); TileEntitySpecialRenderer render4 = new RenderStabiliserMatrix(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityStabiliserMatrix.class, render4); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(UtilModule.StabiliserMatrix), new ItemRenderStabiliserMatrix(render4, new TileEntityStabiliserMatrix())); }
public void registerRenderThings() { RenderingRegistry.registerEntityRenderingHandler(EntityZertum.class, new RenderZertum(new ModelZertum(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityRedZertum.class, new RenderRedZertum(new ModelRedZertum(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityDarkZertum.class, new RenderDarkZertum(new ModelDarkZertum(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityDestroZertum.class, new RenderDestroZertum(new ModelDestroZertum(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityJakan.class, new RenderJakan(new ModelJakan(), 1.0F)); RenderingRegistry.registerEntityRenderingHandler(EntityIceZertum.class, new RenderIceZertum(new ModelIceZertum(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityForisZertum.class, new RenderForisZertum(new ModelForisZertum(), 0.5F)); RenderingRegistry.registerEntityRenderingHandler(EntityKurr.class, new RenderKurr(new ModelKurr(), 1.0F)); RenderingRegistry.registerEntityRenderingHandler(EntityKortor.class, new RenderKortor(new ModelKortor(), 1.0F)); RenderingRegistry.registerEntityRenderingHandler(EntityFlamingPoisonball.class, new RenderFPoisonball(1)); RenderingRegistry.registerEntityRenderingHandler(EntityIceball.class, new RenderIceball(Items.snowball, 1)); RenderingRegistry.registerEntityRenderingHandler(EntityFireball.class, new RenderFireball(Items.fire_charge, 1)); RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, new RenderGrenade(ModItems.nileGrenade)); TileEntitySpecialRenderer render = new RendererNileTable(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityNileTable.class, render); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.nileWorktable), new ItemRendererNileTable(render, new TileEntityNileTable())); }
public static void init() { //to turn the glasses on and off onoff = new KeyBinding("key.onoff", Keyboard.KEY_O, "key.categories.opengx"); //to turn the screen on and off screenpower = new KeyBinding("key.screenpower", Keyboard.KEY_P, "key.categories.opengx"); //action keys actionkey1 = new KeyBinding("key.actionkey1", Keyboard.KEY_LBRACKET, "key.categories.opengx"); actionkey2 = new KeyBinding("key.actionkey2", Keyboard.KEY_RBRACKET, "key.categories.opengx"); actionkeymod = new KeyBinding("key.actionkeymod", Keyboard.KEY_RSHIFT, "key.categories.opengx"); // Register both KeyBindings to the ClientRegistry ClientRegistry.registerKeyBinding(onoff); ClientRegistry.registerKeyBinding(screenpower); ClientRegistry.registerKeyBinding(actionkey1); ClientRegistry.registerKeyBinding(actionkey2); ClientRegistry.registerKeyBinding(actionkeymod); buttonMap.put(Button.ONOFF, onoff); buttonMap.put(Button.SCREENPOWER, screenpower); buttonMap.put(Button.ACTION1, actionkey1); buttonMap.put(Button.ACTION2, actionkey2); buttonMap.put(Button.ACTIONM, actionkeymod); }
@Override public void registerRenderThings() { ClientRegistry.bindTileEntitySpecialRenderer(BlockEntity.class, new BlockRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TreeEntity.class, new TreeRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(BolderEntity.class, new BolderRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(BoxEntity.class, new BoxRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(ClothedTableEntity.class, new ClothedTableRenderer()); if (Basemod.pixelmonPresent) ClientRegistry.bindTileEntitySpecialRenderer(PokeballEntity.class, new PokeballRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(RedCusionChairEntity.class, new RedCusionChairRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TrashcanEntity.class, new TrashcanRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(YellowCusionChairEntity.class, new YellowCusionChairRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TotodilePokedollEntity.class, new TotodilePokedollRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(AronPokedollEntity.class, new AronPokedollRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(BisharpPokedollEntity.class, new BisharpPokedollRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(PokeballStatueTileEntity.class, new PokeballStatueTileEntityRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRadio.class, new RadioBlockRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(GymSignEntity.class, new GymSignRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TVEntity.class, new TVRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(BlueRugEntity.class, new BlueRugRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(RedRugEntity.class, new RedRugRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(GreenRugEntity.class, new GreenRugRenderer()); RenderingRegistry.registerEntityRenderingHandler(SeatEntity.class, new InvisibleRenderer()); RenderingRegistry.registerBlockHandler(500, new ConveyorRenderer()); }
@Override public void preInit(FMLPreInitializationEvent event) { super.preInit(event); MinecraftForge.EVENT_BUS.register(new ItemTooltipEventHandler()); FMLCommonHandler.instance().bus().register(new KeyInputEventHandler()); ClientRegistry.registerKeyBinding(Keybindings.charge); ClientRegistry.registerKeyBinding(Keybindings.mode); ClientRegistry.registerKeyBinding(Keybindings.release); ClientRegistry.registerKeyBinding(Keybindings.toggle); AdvancedModelLoader.registerModelHandler(new TechneModelLoader()); ClientRegistry.bindTileEntitySpecialRenderer(TileCondenser.class, new RenderTileCondenser()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MMBlocks.condenser), new RenderItemCondenser()); ClientRegistry.bindTileEntitySpecialRenderer(TileAlchemicalChest.class, new RenderTileAlchemicalChest()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MMBlocks.alchemicalChest), new RenderItemAlchemicalChest()); ClientRegistry.bindTileEntitySpecialRenderer(TileCollector.class, new RenderTileCollector()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MMBlocks.collector), new RenderItemCollector()); }
@Override public void init() { super.init(); ModLibs.altarRenderID = RenderingRegistry.getNextAvailableRenderId(); ModLibs.ctRenderID = RenderingRegistry.getNextAvailableRenderId(); RenderAltar altarRenderer = new RenderAltar(); RenderingRegistry.registerBlockHandler(new RenderCTBlock(ModLibs.ctRenderID)); ClientRegistry.bindTileEntitySpecialRenderer(TileAltar.class, altarRenderer); ClientRegistry.bindTileEntitySpecialRenderer(TileItemAltar.class, altarRenderer); MinecraftForgeClient.registerItemRenderer(ModItems.spellParchment, new RenderSpellParchment()); MinecraftForgeClient.registerItemRenderer(ModItems.ghostSword, new RenderGhostSword()); MinecraftForgeClient.registerItemRenderer(ModItems.magicRing, new RenderRing()); FMLCommonHandler.instance().bus().register(tickClient); MinecraftForge.EVENT_BUS.register(renderHandler); VillagerRegistry.instance().registerVillagerSkin(ModLibs.villagerID, new ResourceLocation(ModLibs.MOD_ID.toLowerCase() + ":textures/entities/manaVillager.png")); }
@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 registerRenderThings() { ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBarStoolEntity.class, new TileEntityBarStoolRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBottom_Middle_SailEntity.class, new TileEntityBottom_Middle_SailRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBottom_Corner_SailEntity.class, new TileEntityBottom_Corner_SailRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySailEntity.class, new TileEntitySailRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAlabasterColumnEntity.class, new TileEntityAlabasterColumnRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAzuriteColumnEntity.class, new TileEntityAzuriteColumnRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySandStoneColumnDokuEntity.class, new TileEntitySandStoneColumnDokuRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySanguiniteColumnEntity.class, new TileEntitySanguiniteColumnRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityStoneColumnDokuEntity.class, new TileEntityStoneColumnDokuRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityVerditeColumnEntity.class, new TileEntityVerditeColumnRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityVoidstoneColumnEntity.class, new TileEntityVoidstoneColumnRenderer()); }
@Override public void postInit(FMLPostInitializationEvent event) { IModelCustom chamberModel = AdvancedModelLoader.loadModel(new ResourceLocation(MarsModule.ASSET_PREFIX, "models/chamber.obj")); IModelCustom cargoRocketModel = AdvancedModelLoader.loadModel(new ResourceLocation(MarsModule.ASSET_PREFIX, "models/cargoRocket.obj")); // Tile Entity Renderers ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTreasureChestMars.class, new TileEntityTreasureChestRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCryogenicChamber.class, new TileEntityCryogenicChamberRenderer(chamberModel)); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTerraformer.class, new TileEntityBubbleProviderRenderer(0.25F, 1.0F, 0.25F)); // Entities RenderingRegistry.registerEntityRenderingHandler(EntitySludgeling.class, new RenderSludgeling()); RenderingRegistry.registerEntityRenderingHandler(EntitySlimeling.class, new RenderSlimeling()); RenderingRegistry.registerEntityRenderingHandler(EntityCreeperBoss.class, new RenderCreeperBoss()); RenderingRegistry.registerEntityRenderingHandler(EntityTier2Rocket.class, new RenderTier1Rocket(new ModelTier2Rocket(), MarsModule.ASSET_PREFIX, "rocketT2")); // RenderingRegistry.registerEntityRenderingHandler(EntityTerraformBubble.class, new RenderBubble(0.25F, 1.0F, 0.25F)); RenderingRegistry.registerEntityRenderingHandler(EntityProjectileTNT.class, new RenderProjectileTNT()); RenderingRegistry.registerEntityRenderingHandler(EntityLandingBalloons.class, new RenderLandingBalloons()); RenderingRegistry.registerEntityRenderingHandler(EntityLandingBalloons.class, new RenderLandingBalloons()); RenderingRegistry.registerEntityRenderingHandler(EntityCargoRocket.class, new RenderCargoRocket(cargoRocketModel)); // Add Armor Renderer Prefix RenderingRegistry.addNewArmourRendererPrefix("desh"); // Item Renderers MinecraftForgeClient.registerItemRenderer(MarsItems.spaceship, new ItemRendererTier2Rocket(cargoRocketModel)); MinecraftForgeClient.registerItemRenderer(MarsItems.key, new ItemRendererKey(new ResourceLocation(MarsModule.ASSET_PREFIX, "textures/model/treasure.png"))); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MarsBlocks.machine), new ItemRendererMachine(chamberModel)); }
@Override public void postInit(FMLPostInitializationEvent event) { RenderingRegistry.registerEntityRenderingHandler(EntitySmallAsteroid.class, new RenderSmallAsteroid()); RenderingRegistry.registerEntityRenderingHandler(EntityGrapple.class, new RenderGrapple()); IModelCustom podModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/pod.obj")); RenderingRegistry.registerEntityRenderingHandler(EntityEntryPod.class, new RenderEntryPod(podModel)); IModelCustom rocketModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/tier3rocket.obj")); RenderingRegistry.registerEntityRenderingHandler(EntityTier3Rocket.class, new RenderTier3Rocket(rocketModel, AsteroidsModule.ASSET_PREFIX, "tier3rocket")); RenderingRegistry.registerEntityRenderingHandler(EntityAstroMiner.class, new RenderAstroMiner()); IModelCustom grappleModel = AdvancedModelLoader.loadModel(new ResourceLocation(AsteroidsModule.ASSET_PREFIX, "models/grapple.obj")); MinecraftForgeClient.registerItemRenderer(AsteroidsItems.grapple, new ItemRendererGrappleHook(grappleModel)); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.beamReceiver), new ItemRendererBeamReceiver()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.beamReflector), new ItemRendererBeamReflector()); MinecraftForgeClient.registerItemRenderer(AsteroidsItems.tier3Rocket, new ItemRendererTier3Rocket(rocketModel)); MinecraftForgeClient.registerItemRenderer(AsteroidsItems.astroMiner, new ItemRendererAstroMiner()); MinecraftForgeClient.registerItemRenderer(AsteroidsItems.thermalPadding, new ItemRendererThermalArmor()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.shortRangeTelepad), new ItemRendererShortRangeTelepad()); MinecraftForgeClient.registerItemRenderer(AsteroidsItems.heavyNoseCone, new ItemRendererHeavyNoseCone()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkway), new ItemRendererWalkway()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkwayOxygenPipe), new ItemRendererWalkway()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AsteroidBlocks.blockWalkwayWire), new ItemRendererWalkway()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBeamReflector.class, new TileEntityBeamReflectorRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBeamReceiver.class, new TileEntityBeamReceiverRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityMinerBase.class, new TileEntityMinerBaseRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityShortRangeTelepad.class, new TileEntityShortRangeTelepadRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTreasureChestAsteroids.class, new TileEntityTreasureChestRenderer()); if (Loader.isModLoaded("craftguide")) CraftGuideIntegration.register(); }
public static void registerHandlers() { TickHandlerClient tickHandlerClient = new TickHandlerClient(); FMLCommonHandler.instance().bus().register(tickHandlerClient); MinecraftForge.EVENT_BUS.register(tickHandlerClient); FMLCommonHandler.instance().bus().register(new KeyHandlerClient()); ClientRegistry.registerKeyBinding(KeyHandlerClient.galaxyMap); ClientRegistry.registerKeyBinding(KeyHandlerClient.openFuelGui); ClientRegistry.registerKeyBinding(KeyHandlerClient.toggleAdvGoggles); MinecraftForge.EVENT_BUS.register(GalacticraftCore.proxy); }
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(TileEntityOxygenDistributor.class, new TileEntityBubbleProviderRenderer(0.25F, 0.25F, 1.0F)); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityDish.class, new TileEntityDishRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityThruster.class, new TileEntityThrusterRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityArclamp.class, new TileEntityArclampRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityScreen.class, new TileEntityScreenRenderer()); }
public static void register(){ keyBindings = new KeyBinding[1]; keyBindings[0] = new KeyBinding("Activate Ring Power", Keyboard.KEY_P, "key.categories.gameplay"); for (int i = 0; i < keyBindings.length; ++i) { ClientRegistry.registerKeyBinding(keyBindings[i]); System.out.println("LOTRAddons registered KeyBiding: " + keyBindings[i]); } }
@Override public void init(final @Nonnull FMLInitializationEvent event) { super.init(event); // Replace Sign Renderer ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySign.class, Client.renderer); MinecraftForgeClient.registerItemRenderer(Items.sign, new CustomItemSignRenderer()); // Event Register Client.handler.init(); ClientCommandHandler.instance.registerCommand(Client.rootCommand); }
@Override public void preInit(FMLPreInitializationEvent event) { super.preInit(event); RFUtilities.RFU_NET_WRAPPER.registerMessage(PacketGetThroughput.HandlerPacketGetThroughput.class, PacketGetThroughput.class, 1, Side.CLIENT); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityInvisibleTesseract.class, new RenderInvisTesseract()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCapacitor.class, new RenderCapacitor()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySwitch.class, new RenderSwitch()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityResistor.class, new RenderResistor()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityDiode.class, new RenderDiode()); //ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRFMeter.class, new RenderRFMeter()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTransistor.class, new RenderTransistor()); }
public CustomKeyHandler() { // the advantage of doing it with the above static arrays is now we can just loop through // creating and registering all of our keybindings automatically keys = new KeyBinding[desc.length]; for (int i = 0; i < desc.length; ++i) { // create the new KeyBinding: keys[i] = new KeyBinding(desc[i], keyValues[i], "Ring Menu"); // and be sure to register it to the ClientRegistry: ClientRegistry.registerKeyBinding(keys[i]); } }
@Override public void preInit() { super.preInit(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCompressedChest.class, RendererAvaritiaddonsChest.instance); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockCompressedChest.instance), new ItemRendererCompressedChest()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityInfinityChest.class, RendererAvaritiaddonsChest.instance); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockInfinityChest.instance), new ItemRendererInfinityChest()); WanionLib.getClientTickHandler().registerAnimation(ClientConstants.INFINITY_CHEST_ANIMATION); }
public static void registerKeyBindings() { ClientRegistry.registerKeyBinding(keyPowerUp); ClientRegistry.registerKeyBinding(keyPowerDown); ClientRegistry.registerKeyBinding(keyDirUp); ClientRegistry.registerKeyBinding(keyDirDown); ClientRegistry.registerKeyBinding(keyBrakeUp); ClientRegistry.registerKeyBinding(keyBrakeDown); }
@Override public void preInit(FMLPreInitializationEvent e) { super.preInit(e); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityRadar.class, new RadarRender()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityLDA.class, new TileAntennaRender()); RenderingRegistry.registerBlockHandler(radarRenderingId, new RenderingRadarHandler()); RenderingRegistry.registerBlockHandler(LDARenderingId, new RenderingAntennaHandler()); RenderingRegistry.registerBlockHandler(CableDecorRenderingId, new RenderCableDecorHandler()); RenderingRegistry.registerBlockHandler(PIMRenderingId, new BlockPIMRender()); EnumHelper.addRarity("unreal", EnumChatFormatting.OBFUSCATED, "unreal"); }
@Override public void registerTileEntities(boolean flag) { super.registerTileEntities(false); // TESR registers ClientRegistry.registerTileEntity(TELatexExtractor.class, "LatexExtractor", new TESRLatexExtractor()); ClientRegistry.registerTileEntity(TEWireDrawBench.class, "WireDrawBench", new TESRWireDrawBench()); ClientRegistry.registerTileEntity(TEInductionSmelter.class, "InductionSmelter", new TESRInductionSmelter()); }
@Override public void registerRenderThings(){ //オーバーレイブロックレンダ― RenderingRegistry.registerBlockHandler(new OverlayBlockRender()); //粘土るつぼレンダ― TileEntitySpecialRenderer clayCrucibleSpecialRender = new ClayCrucibleSpecialRender(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityClayCrucible.class,clayCrucibleSpecialRender); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(AntiMatterModRegistry.clayCrucible), new ItemRenderClayCrucibles(clayCrucibleSpecialRender,new TileEntityClayCrucible())); ClientRegistry.bindTileEntitySpecialRenderer(TileMultiController.class, new MultiControllerTileRender()); ClientRegistry.bindTileEntitySpecialRenderer(TileBasicTank.class, new RenderTileTank()); RenderingRegistry.registerBlockHandler(new renderMarker()); //土かまどレンダー ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySatStove.class,new SatStoveSpecialRender()); //レンチ関係 MinecraftForge.EVENT_BUS.register(new RenderWrenchSelectionBox()); ClientRegistry.registerKeyBinding(wrenchSetting); MinecraftForge.EVENT_BUS.register(new WrenchKeyEvent()); FMLCommonHandler.instance().bus().register(new WrenchKeyEvent()); RenderingRegistry.registerEntityRenderingHandler(EntityDeveloperBoss.class, new RenderDeveloperBoss()); //MinecraftForgeClient.registerItemRenderer(AntiMatterModRegistry.hammer_01, new ToolDamageRender()); ClientRegistry.bindTileEntitySpecialRenderer(TileMarker.class, new RenderMarker()); }
@Override @SideOnly(Side.CLIENT) public void registerRenderInformation() { TFPBlocks.brickOvenRenderID = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(TFPBlocks.brickOvenRenderID, new TFPBrickOvenRenderer()); MinecraftForgeClient.registerItemRenderer(TFPItems.TFPNecronomicon, new TFPNecronomiconRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TEAltar.class, new TileEntityAltarRenderer()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TFPBlocks.tfpAltar), new TileEntityAltarRenderer()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(TFPBlocks.tfpAltarBlock), new TileEntityAltarRenderer()); }
public static void init() { if (Config.enableButtonTimeChanging) { TIME_BACK = new KeyBinding("collectiveframework.keybindings.timeBack", Keyboard.KEY_F8, "collectiveframework.keybindings.category"); TIME_FORWARD = new KeyBinding("collectiveframework.keybindings.timeForward", Keyboard.KEY_F9, "collectiveframework.keybindings.category"); ClientRegistry.registerKeyBinding(TIME_BACK); ClientRegistry.registerKeyBinding(TIME_FORWARD); } }