use of com.bluepowermod.block.gates.BlockGateBase 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());
}
Aggregations