use of net.minecraft.world.level.block.RedstoneWallTorchBlock in project Tropicraft by Tropicraft.
the class ClientSetup method setupBlockRenderLayers.
public static void setupBlockRenderLayers() {
RenderType cutout = RenderType.cutout();
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.AIR_COMPRESSOR.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.COCONUT.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.DRINK_MIXER.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.SIFTER.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.TIKI_TORCH.get(), cutout);
TropicraftBlocks.FLOWERS.forEach((key, value) -> ItemBlockRenderTypes.setRenderLayer(value.get(), RenderType.cutout()));
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.PINEAPPLE.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.IRIS.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.COFFEE_BUSH.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.GOLDEN_LEATHER_FERN.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.TALL_GOLDEN_LEATHER_FERN.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.LARGE_GOLDEN_LEATHER_FERN.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.GRAPEFRUIT_SAPLING.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.LEMON_SAPLING.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.LIME_SAPLING.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.ORANGE_SAPLING.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.PAPAYA_SAPLING.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.MAHOGANY_SAPLING.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.PALM_SAPLING.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.PALM_TRAPDOOR.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.PALM_DOOR.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.MANGROVE_TRAPDOOR.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.MANGROVE_DOOR.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.BAMBOO_TRAPDOOR.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.BAMBOO_DOOR.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.BAMBOO_LADDER.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.BAMBOO_FLOWER_POT.get(), cutout);
TropicraftBlocks.BAMBOO_POTTED_TROPICS_PLANTS.forEach(value -> ItemBlockRenderTypes.setRenderLayer(value.get(), RenderType.cutout()));
TropicraftBlocks.BAMBOO_POTTED_VANILLA_PLANTS.forEach(value -> ItemBlockRenderTypes.setRenderLayer(value.get(), RenderType.cutout()));
TropicraftBlocks.VANILLA_POTTED_TROPICS_PLANTS.forEach(value -> ItemBlockRenderTypes.setRenderLayer(value.get(), RenderType.cutout()));
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.REEDS.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.PAPAYA.get(), cutout);
RenderType cutoutMipped = RenderType.cutoutMipped();
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.THATCH_STAIRS_FUZZY.get(), cutoutMipped);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.RED_MANGROVE_PROPAGULE.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.TALL_MANGROVE_PROPAGULE.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.TEA_MANGROVE_PROPAGULE.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.BLACK_MANGROVE_PROPAGULE.get(), cutout);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.RED_MANGROVE_ROOTS.get(), cutoutMipped);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.LIGHT_MANGROVE_ROOTS.get(), cutoutMipped);
ItemBlockRenderTypes.setRenderLayer(TropicraftBlocks.BLACK_MANGROVE_ROOTS.get(), cutoutMipped);
for (RegistryObject<RedstoneWallTorchBlock> block : TropicraftBlocks.JIGARBOV_WALL_TORCHES.values()) {
ItemBlockRenderTypes.setRenderLayer(block.get(), cutoutMipped);
}
}
use of net.minecraft.world.level.block.RedstoneWallTorchBlock in project Tropicraft by Tropicraft.
the class JigarbovTorchPlacement method onPlaceBlock.
@SubscribeEvent
public static void onPlaceBlock(BlockEvent.EntityPlaceEvent event) {
BlockState placedState = event.getPlacedBlock();
Block placedBlock = placedState.getBlock();
if (placedBlock == Blocks.REDSTONE_WALL_TORCH) {
RegistryObject<RedstoneWallTorchBlock> jigarbovTorchBlock = getJigarbovTorchFor(event.getPlacedAgainst().getBlock());
if (jigarbovTorchBlock != null) {
BlockState jigarbovTorch = jigarbovTorchBlock.get().defaultBlockState();
jigarbovTorch = copyPropertiesTo(jigarbovTorch, placedState);
event.getWorld().setBlock(event.getPos(), jigarbovTorch, Block.UPDATE_ALL);
}
}
}
Aggregations