Search in sources :

Example 1 with BlockBPGlass

use of com.bluepowermod.block.worldgen.BlockBPGlass in project BluePower by Qmunity.

the class Renderers method init.

public static void init() {
    ClientRegistry.bindTileEntityRenderer(BPTileEntityType.LAMP, RenderLamp::new);
    ClientRegistry.bindTileEntityRenderer(BPTileEntityType.ENGINE, RenderEngine::new);
    for (Item item : BPItems.itemList) {
        if (item instanceof IBPColoredItem) {
            Minecraft.getInstance().getItemColors().register(new BPItemColor(), item);
        }
    }
    for (Block block : BPBlocks.blockList) {
        if (block instanceof IBPColoredBlock) {
            Minecraft.getInstance().getBlockColors().register(new BPBlockColor(), block);
            Minecraft.getInstance().getItemColors().register(new BPBlockColor(), Item.byBlock(block));
        }
        if (block instanceof BlockLampSurface || block instanceof BlockGateBase || block instanceof BlockBattery)
            RenderTypeLookup.setRenderLayer(block, RenderType.cutout());
        if (block instanceof BlockBPGlass || block instanceof BlockBPMicroblock || block instanceof BlockBPMultipart)
            RenderTypeLookup.setRenderLayer(block, RenderType.translucent());
    }
    RenderTypeLookup.setRenderLayer(BPBlocks.indigo_flower, RenderType.cutout());
    RenderTypeLookup.setRenderLayer(BPBlocks.flax_crop, RenderType.cutout());
    RenderTypeLookup.setRenderLayer(BPBlocks.cracked_basalt_lava, RenderType.cutout());
    RenderTypeLookup.setRenderLayer(BPBlocks.cracked_basalt_decorative, RenderType.cutout());
    RenderTypeLookup.setRenderLayer(BPBlocks.rubber_leaves, RenderType.cutout());
    RenderTypeLookup.setRenderLayer(BPBlocks.rubber_sapling, RenderType.cutout());
    RenderTypeLookup.setRenderLayer(BPBlocks.tube, RenderType.cutout());
}
Also used : BlockBPMultipart(com.bluepowermod.block.BlockBPMultipart) BlockLampSurface(com.bluepowermod.block.lighting.BlockLampSurface) BlockBPMicroblock(com.bluepowermod.block.BlockBPMicroblock) BlockBattery(com.bluepowermod.block.power.BlockBattery) BlockBPGlass(com.bluepowermod.block.worldgen.BlockBPGlass) Item(net.minecraft.item.Item) Block(net.minecraft.block.Block) BlockGateBase(com.bluepowermod.block.gates.BlockGateBase)

Aggregations

BlockBPMicroblock (com.bluepowermod.block.BlockBPMicroblock)1 BlockBPMultipart (com.bluepowermod.block.BlockBPMultipart)1 BlockGateBase (com.bluepowermod.block.gates.BlockGateBase)1 BlockLampSurface (com.bluepowermod.block.lighting.BlockLampSurface)1 BlockBattery (com.bluepowermod.block.power.BlockBattery)1 BlockBPGlass (com.bluepowermod.block.worldgen.BlockBPGlass)1 Block (net.minecraft.block.Block)1 Item (net.minecraft.item.Item)1