Java Code Examples for cpw.mods.fml.client.registry.RenderingRegistry#registerBlockHandler()
The following examples show how to use
cpw.mods.fml.client.registry.RenderingRegistry#registerBlockHandler() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WerkstoffLoader.java From bartworks with MIT License | 6 votes |
static void gameRegistryHandler() { if (SideReference.Side.Client) RenderingRegistry.registerBlockHandler(BW_Renderer_Block_Ores.INSTANCE); GameRegistry.registerTileEntity(BW_MetaGeneratedOreTE.class, "bw.blockoresTE"); GameRegistry.registerTileEntity(BW_MetaGeneratedSmallOreTE.class, "bw.blockoresSmallTE"); GameRegistry.registerTileEntity(BW_MetaGenerated_WerkstoffBlock_TE.class, "bw.werkstoffblockTE"); GameRegistry.registerTileEntity(BW_MetaGeneratedBlocks_Casing_TE.class, "bw.werkstoffblockcasingTE"); GameRegistry.registerTileEntity(BW_MetaGeneratedBlocks_CasingAdvanced_TE.class, "bw.werkstoffblockscasingadvancedTE"); WerkstoffLoader.BWOres = new BW_MetaGenerated_Ores(Material.rock, BW_MetaGeneratedOreTE.class, "bw.blockores"); WerkstoffLoader.BWSmallOres = new BW_MetaGenerated_SmallOres(Material.rock, BW_MetaGeneratedSmallOreTE.class, "bw.blockoresSmall"); WerkstoffLoader.BWBlocks = new BW_MetaGenerated_WerkstoffBlocks(Material.iron, BW_MetaGenerated_WerkstoffBlock_TE.class, "bw.werkstoffblocks"); WerkstoffLoader.BWBlockCasings = new BW_MetaGeneratedBlocks_Casing(Material.iron, BW_MetaGeneratedBlocks_Casing_TE.class, "bw.werkstoffblockscasing", blockCasing); WerkstoffLoader.BWBlockCasingsAdvanced = new BW_MetaGeneratedBlocks_Casing(Material.iron, BW_MetaGeneratedBlocks_CasingAdvanced_TE.class, "bw.werkstoffblockscasingadvanced", blockCasingAdvanced); GameRegistry.registerBlock(WerkstoffLoader.BWOres, BW_MetaGeneratedBlock_Item.class, "bw.blockores.01"); GameRegistry.registerBlock(WerkstoffLoader.BWSmallOres, BW_MetaGeneratedBlock_Item.class, "bw.blockores.02"); GameRegistry.registerBlock(WerkstoffLoader.BWBlocks, BW_MetaGeneratedBlock_Item.class, "bw.werkstoffblocks.01"); GameRegistry.registerBlock(WerkstoffLoader.BWBlockCasings, BW_MetaGeneratedBlock_Item.class, "bw.werkstoffblockscasing.01"); GameRegistry.registerBlock(WerkstoffLoader.BWBlockCasingsAdvanced, BW_MetaGeneratedBlock_Item.class, "bw.werkstoffblockscasingadvanced.01"); GTMetaItemEnhancer.init(); }
Example 2
Source File: Extracells.java From ExtraCells1 with MIT License | 6 votes |
@EventHandler public void init(FMLInitializationEvent event) { proxy.RegisterItems(); proxy.RegisterBlocks(); proxy.RegisterRenderers(); proxy.RegisterTileEntities(); proxy.addRecipes(); if (!debug) Util.addBasicBlackList(ItemEnum.FLUIDDISPLAY.getItemInstance().itemID, OreDictionary.WILDCARD_VALUE); Util.getCellRegistry().addCellHandler(new FluidCellHandler()); LanguageRegistry.instance().addStringLocalization("itemGroup.Extra_Cells", "en_US", "Extra Cells"); renderID = RenderingRegistry.getNextAvailableRenderId(); RenderHandler handler = new RenderHandler(renderID); RenderingRegistry.registerBlockHandler(handler); // WAILA Support FMLInterModComms.sendMessage("Waila", "register", "extracells.integration.WAILA.WailaDataProvider.callbackRegister"); // AE Spatial Storage Support proxy.registerMovables(); }
Example 3
Source File: ClientProxy.java From BigReactors with MIT License | 6 votes |
@Override public void init() { super.init(); FMLCommonHandler.instance().bus().register(new MultiblockClientTickHandler()); FMLCommonHandler.instance().bus().register(new BRRenderTickHandler()); BlockFuelRod.renderId = RenderingRegistry.getNextAvailableRenderId(); ISimpleBlockRenderingHandler fuelRodISBRH = new SimpleRendererFuelRod(); RenderingRegistry.registerBlockHandler(BlockFuelRod.renderId, fuelRodISBRH); BlockTurbineRotorPart.renderId = RenderingRegistry.getNextAvailableRenderId(); ISimpleBlockRenderingHandler rotorISBRH = new RotorSimpleRenderer(); RenderingRegistry.registerBlockHandler(BlockTurbineRotorPart.renderId, rotorISBRH); if(BigReactors.blockTurbinePart != null) { ClientRegistry.bindTileEntitySpecialRenderer(TileEntityTurbineRotorBearing.class, new RotorSpecialRenderer()); } }
Example 4
Source File: ClientProxy.java From Et-Futurum with The Unlicense | 6 votes |
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()); }
Example 5
Source File: ClientProxy.java From Chisel with GNU General Public License v2.0 | 6 votes |
@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); }
Example 6
Source File: ClientProxy.java From Framez with GNU General Public License v3.0 | 6 votes |
@Override public void registerRenderers() { MinecraftForge.EVENT_BUS.register(new IconSupplier()); ClientRegistry.bindTileEntitySpecialRenderer(TileMoving.class, new RenderMoving()); MinecraftForgeClient.registerItemRenderer(FramezItems.frame, new RenderFrame()); RenderMotor motorRenderer = new RenderMotor(); ClientRegistry.bindTileEntitySpecialRenderer(TileMotor.class, motorRenderer); RenderingRegistry.registerBlockHandler(motorRenderer); for (Block m : FramezBlocks.motors.keySet()) MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(m), motorRenderer); MinecraftForge.EVENT_BUS.register(new RenderMovementBlocking()); MinecraftForge.EVENT_BUS.register(new MOPHelper()); }
Example 7
Source File: ClientProxy.java From archimedes-ships with MIT License | 6 votes |
@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()); }
Example 8
Source File: ClientProxy.java From GardenCollection with MIT License | 6 votes |
@Override public void registerRenderers () { heavyChainRenderID = RenderingRegistry.getNextAvailableRenderId(); lightChainRenderID = RenderingRegistry.getNextAvailableRenderId(); latticeRenderID = RenderingRegistry.getNextAvailableRenderId(); lanternRenderID = RenderingRegistry.getNextAvailableRenderId(); fenceRenderID = RenderingRegistry.getNextAvailableRenderId(); sconceRenderID = RenderingRegistry.getNextAvailableRenderId(); hoopRenderID = RenderingRegistry.getNextAvailableRenderId(); lanternRenderer = new LanternRenderer(); RenderingRegistry.registerBlockHandler(heavyChainRenderID, new HeavyChainRenderer()); RenderingRegistry.registerBlockHandler(lightChainRenderID, new LightChainRenderer()); RenderingRegistry.registerBlockHandler(latticeRenderID, new LatticeRenderer()); RenderingRegistry.registerBlockHandler(lanternRenderID, lanternRenderer); RenderingRegistry.registerBlockHandler(fenceRenderID, new FenceRenderer()); RenderingRegistry.registerBlockHandler(sconceRenderID, new CandelabraRenderer()); RenderingRegistry.registerBlockHandler(hoopRenderID, new HoopRenderer()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(ModBlocks.lantern), new LanternItemRenderer()); }
Example 9
Source File: ClientProxy.java From GardenCollection with MIT License | 5 votes |
@Override public void registerRenderers () { windowBoxRenderID = RenderingRegistry.getNextAvailableRenderId(); decorativePotRenderID = RenderingRegistry.getNextAvailableRenderId(); largePotRenderID = RenderingRegistry.getNextAvailableRenderId(); mediumPotRenderID = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(windowBoxRenderID, new WindowBoxRenderer()); RenderingRegistry.registerBlockHandler(decorativePotRenderID, new DecorativePotRenderer()); RenderingRegistry.registerBlockHandler(largePotRenderID, new LargePotRenderer()); RenderingRegistry.registerBlockHandler(mediumPotRenderID, new MediumPotRenderer()); }
Example 10
Source File: ClientProxy.java From OpenPeripheral-Addons with MIT License | 5 votes |
@Override public void registerRenderInformation() { OpenPeripheralAddons.renderId = RenderingRegistry.getNextAvailableRenderId(); final BlockRenderingHandler blockRenderingHandler = new BlockRenderingHandler(OpenPeripheralAddons.renderId); RenderingRegistry.registerBlockHandler(blockRenderingHandler); blockRenderingHandler.addRenderer(Blocks.pim, new BlockPIMRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySensor.class, new TileEntitySensorRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySelector.class, new TileEntitySelectorRenderer()); }
Example 11
Source File: ClientProxy.java From GardenCollection with MIT License | 5 votes |
@Override public void registerRenderers () { gardenProxyRenderID = RenderingRegistry.getNextAvailableRenderId(); smallFireRenderID = RenderingRegistry.getNextAvailableRenderId(); compostBinRenderID = RenderingRegistry.getNextAvailableRenderId(); gardenProxyRenderer = new GardenProxyRenderer(); smallFireRenderer = new SmallFireRenderer(); compostBinRenderer = new CompostBinRenderer(); RenderingRegistry.registerBlockHandler(gardenProxyRenderID, gardenProxyRenderer); RenderingRegistry.registerBlockHandler(smallFireRenderID, smallFireRenderer); RenderingRegistry.registerBlockHandler(compostBinRenderID, compostBinRenderer); }
Example 12
Source File: FluidLoader.java From bartworks with MIT License | 5 votes |
public static void run() { FluidLoader.renderID = RenderingRegistry.getNextAvailableRenderId(); short[] rgb = new short[3]; Arrays.fill(rgb, (short) 255); FluidLoader.ff = new GT_Fluid("BWfakeFluid", "molten.autogenerated", rgb); FluidLoader.fulvicAcid = FluidLoader.createAndRegisterFluid("Fulvic Acid", new Color(20, 20, 20)); FluidLoader.heatedfulvicAcid = FluidLoader.createAndRegisterFluid("Heated Fulvic Acid", new Color(40, 20, 20),720); FluidLoader.Kerogen = FluidLoader.createAndRegisterFluid("Kerogen", new Color(85, 85, 85)); FluidLoader.BioLabFluidMaterials = new Fluid[]{ new GT_Fluid("FluorecentdDNA", "molten.autogenerated", new short[]{125, 50, 170, 0}), new GT_Fluid("EnzymesSollution", "molten.autogenerated", new short[]{240, 200, 125, 0}), new GT_Fluid("Penicillin", "molten.autogenerated", new short[]{255, 255, 255, 0}), new GT_Fluid("Polymerase", "molten.autogenerated", new short[]{110, 180, 110, 0}), }; FluidLoader.BioLabFluidCells = new ItemStack[FluidLoader.BioLabFluidMaterials.length]; for (int i = 0; i < FluidLoader.BioLabFluidMaterials.length; i++) { FluidRegistry.registerFluid(FluidLoader.BioLabFluidMaterials[i]); FluidLoader.BioLabFluidCells[i] = ItemFluidCell.getUniversalFluidCell(new FluidStack(FluidLoader.BioLabFluidMaterials[i], 1000)); } // BioCulture.BIO_CULTURE_ARRAY_LIST.get(0).setFluid(new GT_Fluid("_NULL", "molten.autogenerated", BW_Util.splitColorToRBGArray(BioCulture.BIO_CULTURE_ARRAY_LIST.get(0).getColorRGB()))); FluidStack dnaFluid = LoaderReference.gendustry ? FluidRegistry.getFluidStack("liquiddna", 100) : Materials.Biomass.getFluid(100L); for (BioCulture B : BioCulture.BIO_CULTURE_ARRAY_LIST) { if (B.isBreedable()) { B.setFluid(new GT_Fluid(B.getName().replaceAll(" ", "").toLowerCase() + "fluid", "molten.autogenerated", new short[]{(short) B.getColor().getRed(), (short) B.getColor().getBlue(), (short) B.getColor().getGreen()})); FluidRegistry.registerFluid(B.getFluid()); GT_LanguageManager.addStringLocalization(B.getFluid().getUnlocalizedName(), B.getLocalisedName()+" Fluid"); GT_Values.RA.addCentrifugeRecipe(GT_Utility.getIntegratedCircuit(10),GT_Values.NI,new FluidStack(B.getFluid(),1000),dnaFluid,GT_Values.NI,GT_Values.NI,GT_Values.NI,GT_Values.NI,GT_Values.NI,GT_Values.NI,null,500,120); } } FluidLoader.bioFluidBlock = new BioFluidBlock(); GameRegistry.registerBlock(FluidLoader.bioFluidBlock, "coloredFluidBlock"); GameRegistry.registerTileEntity(BWTileEntityDimIDBridge.class, "bwTEDimIDBridge"); if (SideReference.Side.Client) { RenderingRegistry.registerBlockHandler(RendererSwitchingColorFluid.instance); RenderingRegistry.registerBlockHandler(RendererGlasBlock.instance); } }
Example 13
Source File: ClientProxy.java From GardenCollection with MIT License | 5 votes |
@Override public void registerRenderers () { thinLogRenderID = RenderingRegistry.getNextAvailableRenderId(); flowerLeafRenderID = RenderingRegistry.getNextAvailableRenderId(); thinLogFenceRenderID = RenderingRegistry.getNextAvailableRenderId(); ivyRenderID = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(thinLogRenderID, new ThinLogRenderer()); RenderingRegistry.registerBlockHandler(flowerLeafRenderID, new FlowerLeafRenderer()); RenderingRegistry.registerBlockHandler(thinLogFenceRenderID, new ThinLogFenceRenderer()); RenderingRegistry.registerBlockHandler(ivyRenderID, new IvyRenderer()); }
Example 14
Source File: ClientProxy.java From Chisel-2 with GNU General Public License v2.0 | 5 votes |
@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(); }
Example 15
Source File: ChunkLoaderClientProxy.java From ChickenChunks with MIT License | 5 votes |
@Override public void init() { if(config.getTag("checkUpdates").getBooleanValue(true)) CCUpdateChecker.updateCheck("ChickenChunks"); ClientUtils.enhanceSupportersList("ChickenChunks"); super.init(); PacketCustom.assignHandler(ChunkLoaderCPH.channel, new ChunkLoaderCPH()); ClientRegistry.bindTileEntitySpecialRenderer(TileChunkLoader.class, new TileChunkLoaderRenderer()); ClientRegistry.bindTileEntitySpecialRenderer(TileSpotLoader.class, new TileChunkLoaderRenderer()); RenderingRegistry.registerBlockHandler(new ChunkLoaderSBRH()); }
Example 16
Source File: QCraftProxyClient.java From qcraft-mod with Apache License 2.0 | 5 votes |
private void registerForgeHandlers() { ForgeHandlers handlers = new ForgeHandlers(); MinecraftForge.EVENT_BUS.register( handlers ); FMLCommonHandler.instance().bus().register( handlers ); // Logic gate rendering QuantumLogicBlockRenderingHandler logicHandler = new QuantumLogicBlockRenderingHandler(); RenderingRegistry.registerBlockHandler( logicHandler ); // qBlock rendering QBlockRenderingHandler qBlockHandler = new QBlockRenderingHandler(); MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock( QCraft.Blocks.qBlock ), qBlockHandler ); RenderingRegistry.registerBlockHandler( qBlockHandler ); }
Example 17
Source File: ClientProxy.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void registerBlock(FWBlock block) { super.registerBlock(block); /** * Registers a block rendering handler for this block */ RenderingRegistry.registerBlockHandler(block); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(block), block); }
Example 18
Source File: ClientProxy.java From PneumaticCraft with GNU General Public License v3.0 | 4 votes |
@Override public void registerRenders(){ SPECIAL_RENDER_TYPE_VALUE = RenderingRegistry.getNextAvailableRenderId(); blockRenderers.add(new RenderElevatorFrame()); blockRenderers.add(new RenderChargingStationPad()); for(ISBRHPneumatic renderer : blockRenderers) { RenderingRegistry.registerBlockHandler(renderer); } RenderingRegistry.registerBlockHandler(new RenderModelBase()); // RenderingRegistry.registerBlockHandler(new RendererSpecialBlock()); registerBaseModelRenderer(Blockss.airCompressor, TileEntityAirCompressor.class, new ModelAirCompressor("airCompressor")); registerBaseModelRenderer(Blockss.advancedAirCompressor, TileEntityAdvancedAirCompressor.class, new ModelAirCompressor("advancedAirCompressor")); registerBaseModelRenderer(Blockss.assemblyController, TileEntityAssemblyController.class, new ModelAssemblyController()); registerBaseModelRenderer(Blockss.assemblyDrill, TileEntityAssemblyDrill.class, new ModelAssemblyDrill()); registerBaseModelRenderer(Blockss.assemblyIOUnit, TileEntityAssemblyIOUnit.class, new ModelAssemblyIOUnit()); registerBaseModelRenderer(Blockss.assemblyLaser, TileEntityAssemblyLaser.class, new ModelAssemblyLaser()); registerBaseModelRenderer(Blockss.assemblyPlatform, TileEntityAssemblyPlatform.class, new ModelAssemblyPlatform()); registerBaseModelRenderer(Blockss.chargingStation, TileEntityChargingStation.class, new ModelChargingStation()); registerBaseModelRenderer(Blockss.creativeCompressor, TileEntityCreativeCompressor.class, new BaseModel("creativeCompressor.obj")); registerBaseModelRenderer(Blockss.electrostaticCompressor, TileEntityElectrostaticCompressor.class, new BaseModel("electrostaticCompressor.obj")); registerBaseModelRenderer(Blockss.elevatorBase, TileEntityElevatorBase.class, new ModelElevatorBase()); registerBaseModelRenderer(Blockss.pneumaticDoor, TileEntityPneumaticDoor.class, new ModelPneumaticDoor()); registerBaseModelRenderer(Blockss.pneumaticDoorBase, TileEntityPneumaticDoorBase.class, new ModelPneumaticDoorBase()); registerBaseModelRenderer(Blockss.pressureChamberInterface, TileEntityPressureChamberInterface.class, new ModelPressureChamberInterface()); registerBaseModelRenderer(Blockss.securityStation, TileEntitySecurityStation.class, new ModelComputer(Textures.MODEL_SECURITY_STATION)); registerBaseModelRenderer(Blockss.universalSensor, TileEntityUniversalSensor.class, new ModelUniversalSensor()); registerBaseModelRenderer(Blockss.uvLightBox, TileEntityUVLightBox.class, new ModelUVLightBox()); registerBaseModelRenderer(Blockss.vacuumPump, TileEntityVacuumPump.class, new ModelVacuumPump()); registerBaseModelRenderer(Blockss.omnidirectionalHopper, TileEntityOmnidirectionalHopper.class, new ModelOmnidirectionalHopper(Textures.MODEL_OMNIDIRECTIONAL_HOPPER)); registerBaseModelRenderer(Blockss.liquidHopper, TileEntityLiquidHopper.class, new ModelLiquidHopper()); registerBaseModelRenderer(Blockss.programmer, TileEntityProgrammer.class, new ModelComputer(Textures.MODEL_PROGRAMMER)); registerBaseModelRenderer(Blockss.plasticMixer, TileEntityPlasticMixer.class, new ModelPlasticMixer()); registerBaseModelRenderer(Blockss.liquidCompressor, TileEntityLiquidCompressor.class, new BaseModel("liquidCompressor.obj")); registerBaseModelRenderer(Blockss.advancedLiquidCompressor, TileEntityAdvancedLiquidCompressor.class, new BaseModel("liquidCompressor.obj", "advancedLiquidCompressor.png")); registerBaseModelRenderer(Blockss.heatSink, TileEntityHeatSink.class, new ModelHeatSink()); registerBaseModelRenderer(Blockss.vortexTube, TileEntityVortexTube.class, new ModelVortexTube()); registerBaseModelRenderer(Blockss.thermopneumaticProcessingPlant, TileEntityThermopneumaticProcessingPlant.class, new ModelThermopneumaticProcessingPlant()); registerBaseModelRenderer(Blockss.refinery, TileEntityRefinery.class, new ModelRefinery()); registerBaseModelRenderer(Blockss.gasLift, TileEntityGasLift.class, new ModelGasLift()); registerBaseModelRenderer(Blockss.keroseneLamp, TileEntityKeroseneLamp.class, new ModelKeroseneLamp()); registerBaseModelRenderer(Blockss.sentryTurret, TileEntitySentryTurret.class, new ModelSentryTurret()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPressureTube.class, new RenderPressureTube()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAirCannon.class, new RenderAirCannon()); // ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElevatorBase.class, new RenderElevatorBase()); // ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAdvancedPressureTube.class, new RenderAdvancedPressureTube()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAphorismTile.class, new RenderAphorismTile()); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityElevatorCaller.class, new RenderElevatorCaller()); // ClientRegistry.bindTileEntitySpecialRenderer(TileEntityProgrammableController.class, new RenderProgrammableController()); // ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySentryTurret.class, new RenderSentryTurret()); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Blockss.pressureTube), new RenderItemPressureTube(false)); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Blockss.advancedPressureTube), new RenderItemPressureTube(true)); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Blockss.airCannon), new RenderModelBase(new ModelAirCannon())); MinecraftForgeClient.registerItemRenderer(Itemss.vortexCannon, new RenderItemVortexCannon()); // MinecraftForgeClient.registerItemRenderer(Blocks.elevatorBase, new RenderItemElevatorBase()); MinecraftForgeClient.registerItemRenderer(Itemss.cannonBarrel, new RenderItemCannonParts(false)); MinecraftForgeClient.registerItemRenderer(Itemss.stoneBase, new RenderItemCannonParts(true)); MinecraftForgeClient.registerItemRenderer(Itemss.pneumaticCylinder, new RenderItemPneumaticCilinder()); // MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Blockss.advancedPressureTube), new RenderItemAdvancedPressureTube()); MinecraftForgeClient.registerItemRenderer(Itemss.drone, new RenderItemDrone(false)); MinecraftForgeClient.registerItemRenderer(Itemss.logisticsDrone, new RenderItemDrone(true)); MinecraftForgeClient.registerItemRenderer(Itemss.programmingPuzzle, new RenderItemProgrammingPuzzle()); MinecraftForgeClient.registerItemRenderer(Itemss.minigun, new RenderItemMinigun()); if(Config.useHelmetModel) MinecraftForgeClient.registerItemRenderer(Itemss.pneumaticHelmet, new RenderItemPneumaticHelmet()); RenderingRegistry.registerEntityRenderingHandler(EntityVortex.class, new RenderEntityVortex()); RenderingRegistry.registerEntityRenderingHandler(EntityChopperSeeds.class, new RenderEntityChopperSeeds()); RenderingRegistry.registerEntityRenderingHandler(EntityPotionCloud.class, new RenderEntityPotionCloud()); RenderingRegistry.registerEntityRenderingHandler(EntityDrone.class, new RenderDrone(false)); RenderingRegistry.registerEntityRenderingHandler(EntityLogisticsDrone.class, new RenderDrone(true)); RenderingRegistry.registerEntityRenderingHandler(EntityProgrammableController.class, new RenderDrone(false)); RenderingRegistry.registerEntityRenderingHandler(EntityRing.class, new RenderEntityRing()); EntityRegistry.registerModEntity(EntityRing.class, "Ring", 100, PneumaticCraft.instance, 80, 1, true); registerModuleRenderers(); super.registerRenders(); }
Example 19
Source File: ClientProxy.java From Gadomancy with GNU Lesser General Public License v3.0 | 4 votes |
public int registerBlockRenderer(ISimpleBlockRenderingHandler renderer) { int nextId = RenderingRegistry.getNextAvailableRenderId(); RenderingRegistry.registerBlockHandler(nextId, renderer); return nextId; }
Example 20
Source File: ClientProxy.java From Artifacts with MIT License | 4 votes |
@Override public void registerRenders() { int r = RenderingRegistry.getNextAvailableRenderId(); ISimpleBlockRenderingHandler handler = new RenderFakeBlock(r); RenderingRegistry.registerBlockHandler(handler); ((BlockIllusionary)BlockIllusionary.instance).renderType = r; // GameRegistry.registerTileEntity(TileEntitySpikes.class, "artifacts.spiketrap"); r = RenderingRegistry.getNextAvailableRenderId(); handler = new RenderArrowTrap(r); RenderingRegistry.registerBlockHandler(handler); ((BlockTrap)BlockTrap.instance).renderType = r; // GameRegistry.registerTileEntity(TileEntityTrap.class, "artifacts.arrowtrap"); // r = RenderingRegistry.getNextAvailableRenderId(); // handler = new RenderQuickSand(r); // RenderingRegistry.registerBlockHandler(handler); // ((BlockQuickSand)BlockQuickSand.instance).renderType = r; r = RenderingRegistry.getNextAvailableRenderId(); handler = new RenderCoverPlate(r); RenderingRegistry.registerBlockHandler(handler); ((BlockCoverPlate)BlockCoverPlate.instance).renderType = r; RenderingRegistry.registerEntityRenderingHandler(EntityClayGolem.class, new RenderClayGolem()); TileEntitySpecialRenderer render = new TESwordRenderer(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySword.class, render); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockSword.instance), new ItemRenderPedestal(render, new TileEntitySword())); render = new PedestalRenderer(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityDisplayPedestal.class, render); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockPedestal.instance), new ItemRenderPedestal(render, new TileEntityDisplayPedestal())); render = new SpikesRenderer(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySpikes.class, render); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(BlockSpikes.instance), new ItemRenderPedestal(render, new TileEntitySpikes())); r = RenderingRegistry.getNextAvailableRenderId(); handler = new RenderLaserBeam(r); RenderingRegistry.registerBlockHandler(handler); ((BlockLaserBeam)BlockLaserBeam.instance).renderID = r; r = RenderingRegistry.getNextAvailableRenderId(); handler = new RenderLaserSource(r); RenderingRegistry.registerBlockHandler(handler); ((BlockLaserBeamSource)BlockLaserBeamSource.instance).renderID = r; if(Loader.isModLoaded("antiqueatlas")) { // AtlasAPI.getTileAPI().setTexture("wizardtower", new ResourceLocation("artifacts:textures/gui/tower.png")); } }