Search in sources :

Example 1 with ItemBlockItemPipe

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);
}
Also used : ModHandler(gregtech.api.recipes.ModHandler) Arrays(java.util.Arrays) BlockItemPipe(gregtech.common.pipelike.itempipe.BlockItemPipe) Loader(net.minecraftforge.fml.common.Loader) MetaItemBracketHandler(gregtech.api.recipes.crafttweaker.MetaItemBracketHandler) Item(net.minecraft.item.Item) ConfigChangedEvent(net.minecraftforge.fml.client.event.ConfigChangedEvent) FurnaceFuelBurnTimeEvent(net.minecraftforge.event.furnace.FurnaceFuelBurnTimeEvent) Materials(gregtech.api.unification.material.Materials) StoneType(gregtech.api.unification.ore.StoneType) TemperatureProperty(gregtech.api.recipes.recipeproperties.TemperatureProperty) Block(net.minecraft.block.Block) CriteriaTriggers(net.minecraft.advancements.CriteriaTriggers) ObfuscationReflectionHelper(net.minecraftforge.fml.common.ObfuscationReflectionHelper) Side(net.minecraftforge.fml.relauncher.Side) MetaItem(gregtech.api.items.metaitem.MetaItem) ItemBlockItemPipe(gregtech.common.pipelike.itempipe.ItemBlockItemPipe) DustProperty(gregtech.api.unification.material.properties.DustProperty) RegistryEvent(net.minecraftforge.event.RegistryEvent) Method(java.lang.reflect.Method) ItemBlockFluidPipe(gregtech.common.pipelike.fluidpipe.ItemBlockFluidPipe) EnchantmentEnderDamage(gregtech.api.enchants.EnchantmentEnderDamage) PropertyKey(gregtech.api.unification.material.properties.PropertyKey) IForgeRegistry(net.minecraftforge.registries.IForgeRegistry) EnchantmentHardHammer(gregtech.api.enchants.EnchantmentHardHammer) FMLLoadCompleteEvent(net.minecraftforge.fml.common.event.FMLLoadCompleteEvent) InvocationTargetException(java.lang.reflect.InvocationTargetException) EventPriority(net.minecraftforge.fml.common.eventhandler.EventPriority) GTTriggers(gregtech.common.advancement.GTTriggers) GTJeiPlugin(gregtech.integration.jei.GTJeiPlugin) Enchantment(net.minecraft.enchantment.Enchantment) ItemBlockCable(gregtech.common.pipelike.cable.ItemBlockCable) gregtech.common.blocks(gregtech.common.blocks) MetaBlocks(gregtech.common.blocks.MetaBlocks) FluidPipeProperties(gregtech.api.unification.material.properties.FluidPipeProperties) MetaItems(gregtech.common.items.MetaItems) ArrayUtils(org.apache.commons.lang3.ArrayUtils) HashMap(java.util.HashMap) Function(java.util.function.Function) TerminalRegistry(gregtech.api.terminal.TerminalRegistry) Type(net.minecraftforge.common.config.Config.Type) ItemStack(net.minecraft.item.ItemStack) GTRecipeManager(gregtech.loaders.recipe.GTRecipeManager) GregTechAPI(gregtech.api.GregTechAPI) MaterialInfoLoader(gregtech.loaders.MaterialInfoLoader) Material(gregtech.api.unification.material.Material) Mod(net.minecraftforge.fml.common.Mod) OrePrefix(gregtech.api.unification.ore.OrePrefix) BlockCable(gregtech.common.pipelike.cable.BlockCable) MachineItemBlock(gregtech.api.block.machines.MachineItemBlock) GTTrigger(gregtech.api.util.advancement.GTTrigger) IRecipe(net.minecraft.item.crafting.IRecipe) GTLog(gregtech.api.util.GTLog) CraftingComponent(gregtech.loaders.recipe.CraftingComponent) FusionEUToStartProperty(gregtech.api.recipes.recipeproperties.FusionEUToStartProperty) BlockFluidPipe(gregtech.common.pipelike.fluidpipe.BlockFluidPipe) MinecraftForge(net.minecraftforge.common.MinecraftForge) GTValues(gregtech.api.GTValues) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent) ItemBlock(net.minecraft.item.ItemBlock) ICriterionTrigger(net.minecraft.advancements.ICriterionTrigger) ConfigManager(net.minecraftforge.common.config.ConfigManager) OreDictionaryLoader(gregtech.loaders.OreDictionaryLoader) ItemBlockCable(gregtech.common.pipelike.cable.ItemBlockCable) BlockItemPipe(gregtech.common.pipelike.itempipe.BlockItemPipe) ItemBlockItemPipe(gregtech.common.pipelike.itempipe.ItemBlockItemPipe) ItemBlockFluidPipe(gregtech.common.pipelike.fluidpipe.ItemBlockFluidPipe) BlockFluidPipe(gregtech.common.pipelike.fluidpipe.BlockFluidPipe) ItemBlockItemPipe(gregtech.common.pipelike.itempipe.ItemBlockItemPipe) Item(net.minecraft.item.Item) MetaItem(gregtech.api.items.metaitem.MetaItem) ItemBlockFluidPipe(gregtech.common.pipelike.fluidpipe.ItemBlockFluidPipe) ItemBlockCable(gregtech.common.pipelike.cable.ItemBlockCable) BlockCable(gregtech.common.pipelike.cable.BlockCable) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Aggregations

GTValues (gregtech.api.GTValues)1 GregTechAPI (gregtech.api.GregTechAPI)1 MachineItemBlock (gregtech.api.block.machines.MachineItemBlock)1 EnchantmentEnderDamage (gregtech.api.enchants.EnchantmentEnderDamage)1 EnchantmentHardHammer (gregtech.api.enchants.EnchantmentHardHammer)1 MetaItem (gregtech.api.items.metaitem.MetaItem)1 ModHandler (gregtech.api.recipes.ModHandler)1 MetaItemBracketHandler (gregtech.api.recipes.crafttweaker.MetaItemBracketHandler)1 FusionEUToStartProperty (gregtech.api.recipes.recipeproperties.FusionEUToStartProperty)1 TemperatureProperty (gregtech.api.recipes.recipeproperties.TemperatureProperty)1 TerminalRegistry (gregtech.api.terminal.TerminalRegistry)1 Material (gregtech.api.unification.material.Material)1 Materials (gregtech.api.unification.material.Materials)1 DustProperty (gregtech.api.unification.material.properties.DustProperty)1 FluidPipeProperties (gregtech.api.unification.material.properties.FluidPipeProperties)1 PropertyKey (gregtech.api.unification.material.properties.PropertyKey)1 OrePrefix (gregtech.api.unification.ore.OrePrefix)1 StoneType (gregtech.api.unification.ore.StoneType)1 GTLog (gregtech.api.util.GTLog)1 GTTrigger (gregtech.api.util.advancement.GTTrigger)1