use of gregtech.common.pipelike.itempipe.ItemBlockItemPipe in project GregTech by GregTechCEu.
the class CommonProxy method registerItems.
@SubscribeEvent
public static void registerItems(RegistryEvent.Register<Item> event) {
GTLog.logger.info("Registering Items...");
IForgeRegistry<Item> registry = event.getRegistry();
for (MetaItem<?> item : MetaItems.ITEMS) {
registry.register(item);
item.registerSubItems();
}
GTRecipeManager.preLoad();
registry.register(createItemBlock(MACHINE, MachineItemBlock::new));
for (BlockCable cable : CABLES) registry.register(createItemBlock(cable, ItemBlockCable::new));
for (BlockFluidPipe pipe : FLUID_PIPES) registry.register(createItemBlock(pipe, ItemBlockFluidPipe::new));
for (BlockItemPipe pipe : ITEM_PIPES) registry.register(createItemBlock(pipe, ItemBlockItemPipe::new));
registry.register(createItemBlock(HERMETIC_CASING, VariantItemBlock::new));
registry.register(createItemBlock(BOILER_CASING, VariantItemBlock::new));
registry.register(createItemBlock(BOILER_FIREBOX_CASING, VariantItemBlock::new));
registry.register(createItemBlock(METAL_CASING, VariantItemBlock::new));
registry.register(createItemBlock(TURBINE_CASING, VariantItemBlock::new));
registry.register(createItemBlock(MACHINE_CASING, VariantItemBlock::new));
registry.register(createItemBlock(STEAM_CASING, VariantItemBlock::new));
registry.register(createItemBlock(MULTIBLOCK_CASING, VariantItemBlock::new));
registry.register(createItemBlock(TRANSPARENT_CASING, VariantItemBlock::new));
registry.register(createItemBlock(WIRE_COIL, VariantItemBlock::new));
registry.register(createItemBlock(FUSION_CASING, VariantItemBlock::new));
registry.register(createItemBlock(WARNING_SIGN, VariantItemBlock::new));
registry.register(createItemBlock(ASPHALT, VariantItemBlock::new));
registry.register(createItemBlock(STONE_SMOOTH, VariantItemBlock::new));
registry.register(createItemBlock(STONE_COBBLE, VariantItemBlock::new));
registry.register(createItemBlock(STONE_COBBLE_MOSSY, VariantItemBlock::new));
registry.register(createItemBlock(STONE_POLISHED, VariantItemBlock::new));
registry.register(createItemBlock(STONE_BRICKS, VariantItemBlock::new));
registry.register(createItemBlock(STONE_BRICKS_CRACKED, VariantItemBlock::new));
registry.register(createItemBlock(STONE_BRICKS_MOSSY, VariantItemBlock::new));
registry.register(createItemBlock(STONE_CHISELED, VariantItemBlock::new));
registry.register(createItemBlock(STONE_TILED, VariantItemBlock::new));
registry.register(createItemBlock(STONE_TILED_SMALL, VariantItemBlock::new));
registry.register(createItemBlock(STONE_BRICKS_SMALL, VariantItemBlock::new));
registry.register(createItemBlock(STONE_WINDMILL_A, VariantItemBlock::new));
registry.register(createItemBlock(STONE_WINDMILL_B, VariantItemBlock::new));
registry.register(createItemBlock(STONE_BRICKS_SQUARE, VariantItemBlock::new));
registry.register(createItemBlock(PLANKS, VariantItemBlock::new));
registry.register(createItemBlock(RUBBER_LOG, ItemBlock::new));
registry.register(createItemBlock(RUBBER_LEAVES, ItemBlock::new));
registry.register(createItemBlock(RUBBER_SAPLING, ItemBlock::new));
COMPRESSED.values().stream().distinct().map(block -> createItemBlock(block, CompressedItemBlock::new)).forEach(registry::register);
FRAMES.values().stream().distinct().map(block -> createItemBlock(block, FrameItemBlock::new)).forEach(registry::register);
ORES.stream().map(block -> createItemBlock(block, OreItemBlock::new)).forEach(registry::register);
}
Aggregations