cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler Java Examples
The following examples show how to use
cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler.
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: 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 #2
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 #3
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")); } }