Search in sources :

Example 1 with CisternTileEntityRenderer

use of knightminer.ceramics.client.renderer.CisternTileEntityRenderer in project Ceramics by KnightMiner.

the class ClientEvents method setupClient.

@SubscribeEvent
static void setupClient(FMLClientSetupEvent event) {
    RenderType cutout = RenderType.getCutout();
    RenderTypeLookup.setRenderLayer(Registration.TERRACOTTA_GAUGE.get(), cutout);
    RenderTypeLookup.setRenderLayer(Registration.PORCELAIN_GAUGE.get(), cutout);
    RenderTypeLookup.setRenderLayer(Registration.TERRACOTTA_CISTERN.get(), cutout);
    Registration.COLORED_CISTERN.forEach(cistern -> RenderTypeLookup.setRenderLayer(cistern, cutout));
    RenderTypeLookup.setRenderLayer(Registration.TERRACOTTA_FAUCET.get(), cutout);
    RenderTypeLookup.setRenderLayer(Registration.TERRACOTTA_CHANNEL.get(), cutout);
    ScreenManager.registerFactory(Registration.KILN_CONTAINER.get(), KilnScreen::new);
    ClientRegistry.bindTileEntityRenderer(Registration.CISTERN_TILE_ENTITY.get(), CisternTileEntityRenderer::new);
    ClientRegistry.bindTileEntityRenderer(Registration.FAUCET_TILE_ENTITY.get(), FaucetTileEntityRenderer::new);
    ClientRegistry.bindTileEntityRenderer(Registration.CHANNEL_TILE_ENTITY.get(), ChannelTileEntityRenderer::new);
}
Also used : KilnScreen(knightminer.ceramics.client.gui.KilnScreen) CisternTileEntityRenderer(knightminer.ceramics.client.renderer.CisternTileEntityRenderer) FaucetTileEntityRenderer(knightminer.ceramics.client.renderer.FaucetTileEntityRenderer) ChannelTileEntityRenderer(knightminer.ceramics.client.renderer.ChannelTileEntityRenderer) RenderType(net.minecraft.client.renderer.RenderType) SubscribeEvent(net.minecraftforge.eventbus.api.SubscribeEvent)

Aggregations

KilnScreen (knightminer.ceramics.client.gui.KilnScreen)1 ChannelTileEntityRenderer (knightminer.ceramics.client.renderer.ChannelTileEntityRenderer)1 CisternTileEntityRenderer (knightminer.ceramics.client.renderer.CisternTileEntityRenderer)1 FaucetTileEntityRenderer (knightminer.ceramics.client.renderer.FaucetTileEntityRenderer)1 RenderType (net.minecraft.client.renderer.RenderType)1 SubscribeEvent (net.minecraftforge.eventbus.api.SubscribeEvent)1