Search in sources :

Example 1 with RenderTESRMachine

use of binnie.core.machines.render.RenderTESRMachine in project Binnie by ForestryMC.

the class ManagerMachine method postInit.

@Override
public void postInit() {
    // TODO fix rendering
    // BinnieCore.proxy.createObject("binnie.core.machines.RendererMachine");
    Object rendererMachine = null;
    BinnieCore.getBinnieProxy().registerTileEntity(TileEntityMachine.class, "binnie.tile.machine");
    BinnieCore.getBinnieProxy().registerTileEntity(TileEntityTESRMachine.class, "binnie.tile.machine.tesr", new IBinnieProxy.ClientSupplier<TileEntitySpecialRenderer<TileEntityTESRMachine>>() {

        @SideOnly(Side.CLIENT)
        @Override
        public TileEntitySpecialRenderer<TileEntityTESRMachine> get() {
            return new RenderTESRMachine();
        }
    });
}
Also used : IBinnieProxy(binnie.core.proxy.IBinnieProxy) SideOnly(net.minecraftforge.fml.relauncher.SideOnly) TileEntitySpecialRenderer(net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer) RenderTESRMachine(binnie.core.machines.render.RenderTESRMachine)

Aggregations

RenderTESRMachine (binnie.core.machines.render.RenderTESRMachine)1 IBinnieProxy (binnie.core.proxy.IBinnieProxy)1 TileEntitySpecialRenderer (net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1