From eb6f320ef88e0798d778d9869ab4205c662eef85 Mon Sep 17 00:00:00 2001 From: TechLord22 <37029404+techlord22@users.noreply.github.com> Date: Thu, 21 Dec 2023 20:10:59 -0500 Subject: [PATCH 1/3] move creative tabs out of GregTechAPI --- src/main/java/gregtech/api/GregTechAPI.java | 26 ---- .../java/gregtech/api/block/VariantBlock.java | 4 +- .../api/block/machines/BlockMachine.java | 16 ++- .../api/block/machines/MachineItemBlock.java | 5 +- .../BaseCreativeTab.java | 19 +-- .../api/creativetab/GTCreativeTabs.java | 33 +++++ .../api/items/armor/ArmorMetaItem.java | 4 +- .../items/materialitem/MetaPrefixItem.java | 4 +- .../gregtech/api/items/metaitem/MetaItem.java | 32 ++++- .../api/items/toolitem/ItemGTAxe.java | 11 +- .../api/items/toolitem/ItemGTHoe.java | 11 +- .../api/items/toolitem/ItemGTSword.java | 11 +- .../api/items/toolitem/ItemGTTool.java | 11 +- .../api/metatileentity/MetaTileEntity.java | 29 +++- .../longdist/BlockLongDistancePipe.java | 6 +- .../gregtech/common/blocks/BlockAsphalt.java | 4 +- .../common/blocks/BlockCompressed.java | 4 +- .../gregtech/common/blocks/BlockFrame.java | 4 +- .../common/blocks/BlockGregStairs.java | 4 +- .../gregtech/common/blocks/BlockLamp.java | 4 +- .../java/gregtech/common/blocks/BlockOre.java | 6 +- .../common/blocks/BlockWarningSign.java | 4 +- .../common/blocks/BlockWarningSign1.java | 4 +- .../common/blocks/StoneVariantBlock.java | 4 +- .../common/blocks/wood/BlockGregFence.java | 4 +- .../blocks/wood/BlockGregFenceGate.java | 4 +- .../common/blocks/wood/BlockGregWoodSlab.java | 4 +- .../common/blocks/wood/BlockRubberLeaves.java | 4 +- .../common/blocks/wood/BlockRubberLog.java | 4 +- .../blocks/wood/BlockRubberSapling.java | 4 +- .../java/gregtech/common/items/MetaItem1.java | 129 +++++++++++------- .../common/pipelike/cable/BlockCable.java | 4 +- .../pipelike/fluidpipe/BlockFluidPipe.java | 4 +- .../pipelike/itempipe/BlockItemPipe.java | 4 +- .../common/pipelike/laser/BlockLaserPipe.java | 4 +- .../pipelike/optical/BlockOpticalPipe.java | 4 +- 36 files changed, 269 insertions(+), 164 deletions(-) rename src/main/java/gregtech/api/{util => creativetab}/BaseCreativeTab.java (78%) create mode 100644 src/main/java/gregtech/api/creativetab/GTCreativeTabs.java diff --git a/src/main/java/gregtech/api/GregTechAPI.java b/src/main/java/gregtech/api/GregTechAPI.java index f3279eb5b3b..c4506dfbfc0 100644 --- a/src/main/java/gregtech/api/GregTechAPI.java +++ b/src/main/java/gregtech/api/GregTechAPI.java @@ -12,23 +12,14 @@ import gregtech.api.modules.IModuleManager; import gregtech.api.network.INetworkHandler; import gregtech.api.sound.ISoundManager; -import gregtech.api.unification.OreDictUnifier; import gregtech.api.unification.material.Material; -import gregtech.api.unification.material.Materials; import gregtech.api.unification.material.registry.IMaterialRegistryManager; import gregtech.api.unification.material.registry.MarkerMaterialRegistry; -import gregtech.api.unification.ore.OrePrefix; import gregtech.api.unification.ore.StoneType; -import gregtech.api.util.BaseCreativeTab; import gregtech.api.util.GTControlledRegistry; import gregtech.api.util.GTLog; import gregtech.api.util.IBlockOre; import gregtech.common.ConfigHolder; -import gregtech.common.blocks.BlockWarningSign; -import gregtech.common.blocks.MetaBlocks; -import gregtech.common.items.MetaItems; -import gregtech.common.items.ToolItems; -import gregtech.common.metatileentities.MetaTileEntities; import net.minecraft.block.state.IBlockState; import net.minecraft.util.ResourceLocation; @@ -78,23 +69,6 @@ public class GregTechAPI { public static final Object2ObjectMap HEATING_COILS = new Object2ObjectOpenHashMap<>(); public static final Object2ObjectMap PSS_BATTERIES = new Object2ObjectOpenHashMap<>(); - public static final BaseCreativeTab TAB_GREGTECH = new BaseCreativeTab(GTValues.MODID + ".main", - () -> MetaItems.LOGO.getStackForm(), true); - public static final BaseCreativeTab TAB_GREGTECH_MACHINES = new BaseCreativeTab(GTValues.MODID + ".machines", - () -> MetaTileEntities.ELECTRIC_BLAST_FURNACE.getStackForm(), true); - public static final BaseCreativeTab TAB_GREGTECH_CABLES = new BaseCreativeTab(GTValues.MODID + ".cables", - () -> OreDictUnifier.get(OrePrefix.cableGtDouble, Materials.Aluminium), true); - public static final BaseCreativeTab TAB_GREGTECH_PIPES = new BaseCreativeTab(GTValues.MODID + ".pipes", - () -> OreDictUnifier.get(OrePrefix.pipeNormalFluid, Materials.Aluminium), true); - public static final BaseCreativeTab TAB_GREGTECH_TOOLS = new BaseCreativeTab(GTValues.MODID + ".tools", - () -> ToolItems.HARD_HAMMER.get(Materials.Aluminium), true); - public static final BaseCreativeTab TAB_GREGTECH_MATERIALS = new BaseCreativeTab(GTValues.MODID + ".materials", - () -> OreDictUnifier.get(OrePrefix.ingot, Materials.Aluminium), true); - public static final BaseCreativeTab TAB_GREGTECH_ORES = new BaseCreativeTab(GTValues.MODID + ".ores", - () -> OreDictUnifier.get(OrePrefix.ore, Materials.Aluminium), true); - public static final BaseCreativeTab TAB_GREGTECH_DECORATIONS = new BaseCreativeTab(GTValues.MODID + ".decorations", - () -> MetaBlocks.WARNING_SIGN.getItemVariant(BlockWarningSign.SignType.YELLOW_STRIPES), true); - /** Will be available at the Pre-Initialization stage */ public static boolean isHighTier() { return highTier; diff --git a/src/main/java/gregtech/api/block/VariantBlock.java b/src/main/java/gregtech/api/block/VariantBlock.java index 5b0310263ef..36f94805195 100644 --- a/src/main/java/gregtech/api/block/VariantBlock.java +++ b/src/main/java/gregtech/api/block/VariantBlock.java @@ -1,6 +1,6 @@ package gregtech.api.block; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.Block; @@ -43,7 +43,7 @@ public VariantBlock(Material materialIn) { state); } } - setCreativeTab(GregTechAPI.TAB_GREGTECH); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH); setDefaultState(this.blockState.getBaseState().withProperty(VARIANT, VALUES[0])); } diff --git a/src/main/java/gregtech/api/block/machines/BlockMachine.java b/src/main/java/gregtech/api/block/machines/BlockMachine.java index f9a77ccbe07..f8d6a355c3c 100644 --- a/src/main/java/gregtech/api/block/machines/BlockMachine.java +++ b/src/main/java/gregtech/api/block/machines/BlockMachine.java @@ -7,6 +7,7 @@ import gregtech.api.block.UnlistedStringProperty; import gregtech.api.cover.Cover; import gregtech.api.cover.IFacadeCover; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.metatileentity.MetaTileEntity; @@ -40,7 +41,11 @@ import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.*; +import net.minecraft.util.BlockRenderLayer; +import net.minecraft.util.EnumBlockRenderType; +import net.minecraft.util.EnumFacing; +import net.minecraft.util.EnumHand; +import net.minecraft.util.NonNullList; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.RayTraceResult; @@ -63,7 +68,12 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.*; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Random; +import java.util.Set; import static gregtech.api.util.GTUtility.getMetaTileEntity; @@ -83,7 +93,7 @@ public class BlockMachine extends BlockCustomParticle implements ITileEntityProv public BlockMachine() { super(Material.IRON); - setCreativeTab(GregTechAPI.TAB_GREGTECH_MACHINES); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_MACHINES); setSoundType(SoundType.METAL); setHardness(6.0f); setResistance(6.0f); diff --git a/src/main/java/gregtech/api/block/machines/MachineItemBlock.java b/src/main/java/gregtech/api/block/machines/MachineItemBlock.java index 1186eaefa7c..152042081a8 100644 --- a/src/main/java/gregtech/api/block/machines/MachineItemBlock.java +++ b/src/main/java/gregtech/api/block/machines/MachineItemBlock.java @@ -2,6 +2,7 @@ import gregtech.api.GTValues; import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.metatileentity.ITieredMetaTileEntity; import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.pipenet.block.BlockPipe; @@ -61,8 +62,8 @@ public class MachineItemBlock extends ItemBlock { */ public static void addCreativeTab(CreativeTabs creativeTab) { Preconditions.checkNotNull(creativeTab, "creativeTab"); - if (creativeTab == GregTechAPI.TAB_GREGTECH_MACHINES) { - throw new IllegalArgumentException("Adding " + GregTechAPI.TAB_GREGTECH_MACHINES.tabLabel + + if (creativeTab == GTCreativeTabs.TAB_GREGTECH_MACHINES) { + throw new IllegalArgumentException("Adding " + GTCreativeTabs.TAB_GREGTECH_MACHINES.tabLabel + " as additional creative tab is redundant."); } else if (creativeTab == CreativeTabs.SEARCH) { throw new IllegalArgumentException( diff --git a/src/main/java/gregtech/api/util/BaseCreativeTab.java b/src/main/java/gregtech/api/creativetab/BaseCreativeTab.java similarity index 78% rename from src/main/java/gregtech/api/util/BaseCreativeTab.java rename to src/main/java/gregtech/api/creativetab/BaseCreativeTab.java index 0b9fd926651..4607cf05d08 100644 --- a/src/main/java/gregtech/api/util/BaseCreativeTab.java +++ b/src/main/java/gregtech/api/creativetab/BaseCreativeTab.java @@ -1,4 +1,6 @@ -package gregtech.api.util; +package gregtech.api.creativetab; + +import gregtech.api.util.GTLog; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; @@ -13,31 +15,32 @@ public class BaseCreativeTab extends CreativeTabs { private final boolean hasSearchBar; private final Supplier iconSupplier; - public BaseCreativeTab(String TabName, Supplier iconSupplier, boolean hasSearchBar) { - super(TabName); + public BaseCreativeTab(String tabName, Supplier iconSupplier, boolean hasSearchBar) { + super(tabName); this.iconSupplier = iconSupplier; this.hasSearchBar = hasSearchBar; - if (hasSearchBar) + if (hasSearchBar) { setBackgroundImageName("item_search.png"); + } } @NotNull @Override public ItemStack createIcon() { if (iconSupplier == null) { - GTLog.logger.error("Icon supplier was null for CreativeTab " + getTabLabel()); + GTLog.logger.error("Icon supplier was null for CreativeTab {}", getTabLabel()); return new ItemStack(Blocks.STONE); } ItemStack stack = iconSupplier.get(); if (stack == null) { - GTLog.logger.error("Icon supplier return null for CreativeTab " + getTabLabel()); + GTLog.logger.error("Icon supplier return null for CreativeTab {}", getTabLabel()); return new ItemStack(Blocks.STONE); } - if (stack == ItemStack.EMPTY) { - GTLog.logger.error("Icon built from iconSupplied is EMPTY for CreativeTab " + getTabLabel()); + if (stack.isEmpty()) { + GTLog.logger.error("Icon built from iconSupplied is EMPTY for CreativeTab {}", getTabLabel()); return new ItemStack(Blocks.STONE); } diff --git a/src/main/java/gregtech/api/creativetab/GTCreativeTabs.java b/src/main/java/gregtech/api/creativetab/GTCreativeTabs.java new file mode 100644 index 00000000000..e27e1c846bb --- /dev/null +++ b/src/main/java/gregtech/api/creativetab/GTCreativeTabs.java @@ -0,0 +1,33 @@ +package gregtech.api.creativetab; + +import gregtech.api.GTValues; +import gregtech.api.unification.OreDictUnifier; +import gregtech.api.unification.material.Materials; +import gregtech.api.unification.ore.OrePrefix; +import gregtech.common.blocks.BlockWarningSign; +import gregtech.common.blocks.MetaBlocks; +import gregtech.common.items.MetaItems; +import gregtech.common.items.ToolItems; +import gregtech.common.metatileentities.MetaTileEntities; + +public final class GTCreativeTabs { + + public static final BaseCreativeTab TAB_GREGTECH = new BaseCreativeTab(GTValues.MODID + ".main", + () -> MetaItems.LOGO.getStackForm(), true); + public static final BaseCreativeTab TAB_GREGTECH_MACHINES = new BaseCreativeTab(GTValues.MODID + ".machines", + () -> MetaTileEntities.ELECTRIC_BLAST_FURNACE.getStackForm(), true); + public static final BaseCreativeTab TAB_GREGTECH_CABLES = new BaseCreativeTab(GTValues.MODID + ".cables", + () -> OreDictUnifier.get(OrePrefix.cableGtDouble, Materials.Aluminium), true); + public static final BaseCreativeTab TAB_GREGTECH_PIPES = new BaseCreativeTab(GTValues.MODID + ".pipes", + () -> OreDictUnifier.get(OrePrefix.pipeNormalFluid, Materials.Aluminium), true); + public static final BaseCreativeTab TAB_GREGTECH_TOOLS = new BaseCreativeTab(GTValues.MODID + ".tools", + () -> ToolItems.HARD_HAMMER.get(Materials.Aluminium), true); + public static final BaseCreativeTab TAB_GREGTECH_MATERIALS = new BaseCreativeTab(GTValues.MODID + ".materials", + () -> OreDictUnifier.get(OrePrefix.ingot, Materials.Aluminium), true); + public static final BaseCreativeTab TAB_GREGTECH_ORES = new BaseCreativeTab(GTValues.MODID + ".ores", + () -> OreDictUnifier.get(OrePrefix.ore, Materials.Aluminium), true); + public static final BaseCreativeTab TAB_GREGTECH_DECORATIONS = new BaseCreativeTab(GTValues.MODID + ".decorations", + () -> MetaBlocks.WARNING_SIGN.getItemVariant(BlockWarningSign.SignType.YELLOW_STRIPES), true); + + private GTCreativeTabs() {} +} diff --git a/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java b/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java index e7e663377d0..950d06861d9 100644 --- a/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java +++ b/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java @@ -1,6 +1,6 @@ package gregtech.api.items.armor; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.metaitem.MetaItem; import gregtech.api.items.metaitem.stats.IEnchantabilityHelper; import gregtech.api.items.metaitem.stats.IItemComponent; @@ -33,7 +33,7 @@ public class ArmorMetaItem.ArmorMetaValueItem> extend public ArmorMetaItem() { super((short) 0); - setCreativeTab(GregTechAPI.TAB_GREGTECH_TOOLS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_TOOLS); } @SuppressWarnings("unchecked") diff --git a/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java b/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java index 35172727add..cd9b5a90c2b 100644 --- a/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java +++ b/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java @@ -1,7 +1,7 @@ package gregtech.api.items.materialitem; import gregtech.api.GTValues; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.damagesources.DamageSources; import gregtech.api.items.armor.ArmorMetaItem; import gregtech.api.items.metaitem.StandardMetaItem; @@ -58,7 +58,7 @@ public MetaPrefixItem(@NotNull MaterialRegistry registry, @NotNull OrePrefix ore super(); this.registry = registry; this.prefix = orePrefix; - this.setCreativeTab(GregTechAPI.TAB_GREGTECH_MATERIALS); + this.setCreativeTab(GTCreativeTabs.TAB_GREGTECH_MATERIALS); } @Override diff --git a/src/main/java/gregtech/api/items/metaitem/MetaItem.java b/src/main/java/gregtech/api/items/metaitem/MetaItem.java index ba1f713f010..e96f427b7ac 100644 --- a/src/main/java/gregtech/api/items/metaitem/MetaItem.java +++ b/src/main/java/gregtech/api/items/metaitem/MetaItem.java @@ -1,18 +1,29 @@ package gregtech.api.items.metaitem; import gregtech.api.GTValues; -import gregtech.api.GregTechAPI; import gregtech.api.capability.GregtechCapabilities; import gregtech.api.capability.IElectricItem; import gregtech.api.capability.IFilteredFluidContainer; import gregtech.api.capability.IPropertyFluidFilter; import gregtech.api.capability.impl.CombinedCapabilityProvider; import gregtech.api.capability.impl.ElectricItem; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.gui.ModularUI; import gregtech.api.items.OreDictNames; import gregtech.api.items.gui.ItemUIFactory; import gregtech.api.items.gui.PlayerInventoryHolder; -import gregtech.api.items.metaitem.stats.*; +import gregtech.api.items.metaitem.stats.IEnchantabilityHelper; +import gregtech.api.items.metaitem.stats.IFoodBehavior; +import gregtech.api.items.metaitem.stats.IItemBehaviour; +import gregtech.api.items.metaitem.stats.IItemCapabilityProvider; +import gregtech.api.items.metaitem.stats.IItemColorProvider; +import gregtech.api.items.metaitem.stats.IItemComponent; +import gregtech.api.items.metaitem.stats.IItemContainerItemProvider; +import gregtech.api.items.metaitem.stats.IItemDurabilityManager; +import gregtech.api.items.metaitem.stats.IItemMaxStackSizeProvider; +import gregtech.api.items.metaitem.stats.IItemNameProvider; +import gregtech.api.items.metaitem.stats.IItemUseManager; +import gregtech.api.items.metaitem.stats.ISubItemHandler; import gregtech.api.recipes.ingredients.IntCircuitIngredient; import gregtech.api.unification.OreDictUnifier; import gregtech.api.unification.material.Material; @@ -40,7 +51,12 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.*; +import net.minecraft.util.ActionResult; +import net.minecraft.util.EnumActionResult; +import net.minecraft.util.EnumFacing; +import net.minecraft.util.EnumHand; +import net.minecraft.util.NonNullList; +import net.minecraft.util.ResourceLocation; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.client.model.ModelLoader; @@ -72,7 +88,13 @@ import java.time.Duration; import java.time.Instant; -import java.util.*; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Set; /** * MetaItem is item that can have up to Short.MAX_VALUE items inside one id. @@ -107,7 +129,7 @@ public static List> getMetaItems() { protected final short metaItemOffset; - private CreativeTabs[] defaultCreativeTabs = new CreativeTabs[] { GregTechAPI.TAB_GREGTECH }; + private CreativeTabs[] defaultCreativeTabs = new CreativeTabs[] { GTCreativeTabs.TAB_GREGTECH }; private final Set additionalCreativeTabs = new ObjectArraySet<>(); public MetaItem(short metaItemOffset) { diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java b/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java index 5acd7f41780..fdda4c700b0 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java @@ -1,6 +1,6 @@ package gregtech.api.items.toolitem; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.state.IBlockState; @@ -14,7 +14,12 @@ import net.minecraft.item.ItemAxe; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.*; +import net.minecraft.util.ActionResult; +import net.minecraft.util.EnumActionResult; +import net.minecraft.util.EnumFacing; +import net.minecraft.util.EnumHand; +import net.minecraft.util.NonNullList; +import net.minecraft.util.SoundEvent; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; @@ -59,7 +64,7 @@ protected ItemGTAxe(String domain, String id, int tier, IGTToolDefinition toolSt this.secondaryOreDicts = secondaryOreDicts; this.markerItem = markerItem; setMaxStackSize(1); - setCreativeTab(GregTechAPI.TAB_GREGTECH_TOOLS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_TOOLS); setTranslationKey("gt.tool." + id + ".name"); setRegistryName(domain, id); } diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java b/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java index 7f52587be7c..9b17011147a 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java @@ -1,6 +1,6 @@ package gregtech.api.items.toolitem; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.state.IBlockState; @@ -14,7 +14,12 @@ import net.minecraft.item.ItemHoe; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.*; +import net.minecraft.util.ActionResult; +import net.minecraft.util.EnumActionResult; +import net.minecraft.util.EnumFacing; +import net.minecraft.util.EnumHand; +import net.minecraft.util.NonNullList; +import net.minecraft.util.SoundEvent; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; @@ -59,7 +64,7 @@ protected ItemGTHoe(String domain, String id, int tier, IGTToolDefinition toolSt this.secondaryOreDicts = secondaryOreDicts; this.markerItem = markerItem; setMaxStackSize(1); - setCreativeTab(GregTechAPI.TAB_GREGTECH_TOOLS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_TOOLS); setTranslationKey("gt.tool." + id + ".name"); setRegistryName(domain, id); } diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java b/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java index 5b95f6f3718..98689f97b7f 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java @@ -1,6 +1,6 @@ package gregtech.api.items.toolitem; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.state.IBlockState; @@ -14,7 +14,12 @@ import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.*; +import net.minecraft.util.ActionResult; +import net.minecraft.util.EnumActionResult; +import net.minecraft.util.EnumFacing; +import net.minecraft.util.EnumHand; +import net.minecraft.util.NonNullList; +import net.minecraft.util.SoundEvent; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; @@ -61,7 +66,7 @@ protected ItemGTSword(String domain, String id, int tier, IGTToolDefinition tool this.secondaryOreDicts = secondaryOreDicts; this.markerItem = markerItem; setMaxStackSize(1); - setCreativeTab(GregTechAPI.TAB_GREGTECH_TOOLS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_TOOLS); setTranslationKey("gt.tool." + id + ".name"); setRegistryName(domain, id); } diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java b/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java index edcfa83126d..a1091c5299f 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java @@ -1,6 +1,6 @@ package gregtech.api.items.toolitem; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.state.IBlockState; @@ -14,7 +14,12 @@ import net.minecraft.item.ItemStack; import net.minecraft.item.ItemTool; import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.*; +import net.minecraft.util.ActionResult; +import net.minecraft.util.EnumActionResult; +import net.minecraft.util.EnumFacing; +import net.minecraft.util.EnumHand; +import net.minecraft.util.NonNullList; +import net.minecraft.util.SoundEvent; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; @@ -65,7 +70,7 @@ protected ItemGTTool(String domain, String id, int tier, IGTToolDefinition toolS this.secondaryOreDicts = secondaryOreDicts; this.markerItem = markerItem; setMaxStackSize(1); - setCreativeTab(GregTechAPI.TAB_GREGTECH_TOOLS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_TOOLS); setTranslationKey("gt.tool." + id + ".name"); setRegistryName(domain, id); } diff --git a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java index 659460902b0..e5a91db0e76 100644 --- a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java @@ -7,8 +7,17 @@ import gregtech.api.capability.GregtechTileCapabilities; import gregtech.api.capability.IControllable; import gregtech.api.capability.IEnergyContainer; -import gregtech.api.capability.impl.*; -import gregtech.api.cover.*; +import gregtech.api.capability.impl.AbstractRecipeLogic; +import gregtech.api.capability.impl.FluidHandlerProxy; +import gregtech.api.capability.impl.FluidTankList; +import gregtech.api.capability.impl.ItemHandlerProxy; +import gregtech.api.capability.impl.NotifiableFluidTank; +import gregtech.api.cover.Cover; +import gregtech.api.cover.CoverHolder; +import gregtech.api.cover.CoverRayTracer; +import gregtech.api.cover.CoverSaveHandler; +import gregtech.api.cover.CoverUtil; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.gui.ModularUI; import gregtech.api.items.itemhandlers.GTItemStackHandler; import gregtech.api.items.toolitem.ToolClasses; @@ -40,7 +49,13 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.PacketBuffer; import net.minecraft.tileentity.TileEntity; -import net.minecraft.util.*; +import net.minecraft.util.BlockRenderLayer; +import net.minecraft.util.EnumActionResult; +import net.minecraft.util.EnumFacing; +import net.minecraft.util.EnumHand; +import net.minecraft.util.NonNullList; +import net.minecraft.util.ResourceLocation; +import net.minecraft.util.SoundEvent; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.TextComponentTranslation; import net.minecraft.world.World; @@ -84,7 +99,11 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.*; +import java.util.ArrayList; +import java.util.EnumMap; +import java.util.List; +import java.util.Map; +import java.util.Set; import java.util.function.BiConsumer; import java.util.function.Consumer; @@ -328,7 +347,7 @@ public void getSubItems(CreativeTabs creativeTab, NonNullList subItem * MachineItemBlock#addCreativeTab(CreativeTabs) */ public boolean isInCreativeTab(CreativeTabs creativeTab) { - return creativeTab == CreativeTabs.SEARCH || creativeTab == GregTechAPI.TAB_GREGTECH_MACHINES; + return creativeTab == CreativeTabs.SEARCH || creativeTab == GTCreativeTabs.TAB_GREGTECH_MACHINES; } public String getItemSubTypeId(ItemStack itemStack) { diff --git a/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java b/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java index cb3a9a5abbb..07ebe148833 100644 --- a/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java +++ b/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java @@ -1,6 +1,6 @@ package gregtech.api.pipenet.longdist; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.Block; @@ -33,7 +33,7 @@ public BlockLongDistancePipe(LongDistancePipeType pipeType) { super(Material.IRON); this.pipeType = pipeType; setTranslationKey("long_distance_" + pipeType.getName() + "_pipeline"); - setCreativeTab(GregTechAPI.TAB_GREGTECH); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH); setHarvestLevel(ToolClasses.WRENCH, 1); } @@ -101,7 +101,7 @@ public void breakBlock(@NotNull World worldIn, @NotNull BlockPos pos, @NotNull I @Override public void getSubBlocks(@NotNull CreativeTabs itemIn, @NotNull NonNullList items) { - if (itemIn == GregTechAPI.TAB_GREGTECH) { + if (itemIn == GTCreativeTabs.TAB_GREGTECH) { items.add(new ItemStack(this)); } } diff --git a/src/main/java/gregtech/common/blocks/BlockAsphalt.java b/src/main/java/gregtech/common/blocks/BlockAsphalt.java index 281e47c76b8..120e122f4da 100644 --- a/src/main/java/gregtech/common/blocks/BlockAsphalt.java +++ b/src/main/java/gregtech/common/blocks/BlockAsphalt.java @@ -1,8 +1,8 @@ package gregtech.common.blocks; -import gregtech.api.GregTechAPI; import gregtech.api.block.IStateHarvestLevel; import gregtech.api.block.VariantBlock; +import gregtech.api.creativetab.GTCreativeTabs; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; @@ -23,7 +23,7 @@ public BlockAsphalt() { setResistance(10.0f); setSoundType(SoundType.STONE); setDefaultState(getState(BlockType.ASPHALT)); - setCreativeTab(GregTechAPI.TAB_GREGTECH_DECORATIONS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); } @Override diff --git a/src/main/java/gregtech/common/blocks/BlockCompressed.java b/src/main/java/gregtech/common/blocks/BlockCompressed.java index 18b71b293d6..87d7cef9e91 100644 --- a/src/main/java/gregtech/common/blocks/BlockCompressed.java +++ b/src/main/java/gregtech/common/blocks/BlockCompressed.java @@ -1,6 +1,6 @@ package gregtech.common.blocks; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.unification.material.Material; import gregtech.api.unification.material.info.MaterialIconType; @@ -46,7 +46,7 @@ private BlockCompressed() { setTranslationKey("compressed"); setHardness(5.0f); setResistance(10.0f); - setCreativeTab(GregTechAPI.TAB_GREGTECH_MATERIALS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_MATERIALS); } @Override diff --git a/src/main/java/gregtech/common/blocks/BlockFrame.java b/src/main/java/gregtech/common/blocks/BlockFrame.java index f4bb81f675d..21a4dced430 100644 --- a/src/main/java/gregtech/common/blocks/BlockFrame.java +++ b/src/main/java/gregtech/common/blocks/BlockFrame.java @@ -1,6 +1,6 @@ package gregtech.common.blocks; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.pipenet.block.BlockPipe; @@ -68,7 +68,7 @@ private BlockFrame() { setTranslationKey("frame"); setHardness(3.0f); setResistance(6.0f); - setCreativeTab(GregTechAPI.TAB_GREGTECH_MATERIALS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_MATERIALS); } @Override diff --git a/src/main/java/gregtech/common/blocks/BlockGregStairs.java b/src/main/java/gregtech/common/blocks/BlockGregStairs.java index f04cddbe6df..78e170cb233 100644 --- a/src/main/java/gregtech/common/blocks/BlockGregStairs.java +++ b/src/main/java/gregtech/common/blocks/BlockGregStairs.java @@ -1,6 +1,6 @@ package gregtech.common.blocks; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.BlockStairs; @@ -15,7 +15,7 @@ public class BlockGregStairs extends BlockStairs { public BlockGregStairs(IBlockState state) { super(state); - setCreativeTab(GregTechAPI.TAB_GREGTECH_DECORATIONS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); this.useNeighborBrightness = true; this.setHarvestLevel(ToolClasses.AXE, 0); } diff --git a/src/main/java/gregtech/common/blocks/BlockLamp.java b/src/main/java/gregtech/common/blocks/BlockLamp.java index 3cc7c273ddc..c4a76c8fa1b 100644 --- a/src/main/java/gregtech/common/blocks/BlockLamp.java +++ b/src/main/java/gregtech/common/blocks/BlockLamp.java @@ -1,7 +1,7 @@ package gregtech.common.blocks; import gregtech.api.GTValues; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.unification.OreDictUnifier; import gregtech.api.unification.material.MarkerMaterials; import gregtech.api.unification.ore.OrePrefix; @@ -66,7 +66,7 @@ public BlockLamp(EnumDyeColor color) { .withProperty(LIGHT, true) .withProperty(INVERTED, false) .withProperty(POWERED, false)); - setCreativeTab(GregTechAPI.TAB_GREGTECH_DECORATIONS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); } public boolean isLightEnabled(ItemStack stack) { diff --git a/src/main/java/gregtech/common/blocks/BlockOre.java b/src/main/java/gregtech/common/blocks/BlockOre.java index c0fc037097b..6fecaeb13fa 100644 --- a/src/main/java/gregtech/common/blocks/BlockOre.java +++ b/src/main/java/gregtech/common/blocks/BlockOre.java @@ -1,6 +1,6 @@ package gregtech.common.blocks; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.unification.material.Material; import gregtech.api.unification.material.info.MaterialFlags; @@ -54,7 +54,7 @@ public BlockOre(Material material, StoneType[] allowedValues) { this.material = Objects.requireNonNull(material, "Material in BlockOre can not be null!"); STONE_TYPE = PropertyStoneType.create("stone_type", allowedValues); initBlockState(); - setCreativeTab(GregTechAPI.TAB_GREGTECH_ORES); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_ORES); } @NotNull @@ -173,7 +173,7 @@ public boolean isFireSource(@NotNull World world, @NotNull BlockPos pos, @NotNul @Override public void getSubBlocks(@NotNull CreativeTabs tab, @NotNull NonNullList list) { - if (tab == CreativeTabs.SEARCH || tab == GregTechAPI.TAB_GREGTECH_ORES) { + if (tab == CreativeTabs.SEARCH || tab == GTCreativeTabs.TAB_GREGTECH_ORES) { blockState.getValidStates().stream() .filter(state -> state.getValue(STONE_TYPE).shouldBeDroppedAsItem) .forEach(blockState -> list.add(GTUtility.toItem(blockState))); diff --git a/src/main/java/gregtech/common/blocks/BlockWarningSign.java b/src/main/java/gregtech/common/blocks/BlockWarningSign.java index e452e203528..90486abd135 100644 --- a/src/main/java/gregtech/common/blocks/BlockWarningSign.java +++ b/src/main/java/gregtech/common/blocks/BlockWarningSign.java @@ -1,7 +1,7 @@ package gregtech.common.blocks; -import gregtech.api.GregTechAPI; import gregtech.api.block.VariantBlock; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.SoundType; @@ -24,7 +24,7 @@ public BlockWarningSign() { setSoundType(SoundType.METAL); setHarvestLevel(ToolClasses.WRENCH, 1); setDefaultState(getState(SignType.YELLOW_STRIPES)); - setCreativeTab(GregTechAPI.TAB_GREGTECH_DECORATIONS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); } @Override diff --git a/src/main/java/gregtech/common/blocks/BlockWarningSign1.java b/src/main/java/gregtech/common/blocks/BlockWarningSign1.java index b25d74c9397..8cf8252b7fe 100644 --- a/src/main/java/gregtech/common/blocks/BlockWarningSign1.java +++ b/src/main/java/gregtech/common/blocks/BlockWarningSign1.java @@ -1,7 +1,7 @@ package gregtech.common.blocks; -import gregtech.api.GregTechAPI; import gregtech.api.block.VariantBlock; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.SoundType; @@ -24,7 +24,7 @@ public BlockWarningSign1() { setSoundType(SoundType.METAL); setHarvestLevel(ToolClasses.WRENCH, 1); setDefaultState(getState(SignType.MOB_SPAWNER_HAZARD)); - setCreativeTab(GregTechAPI.TAB_GREGTECH_DECORATIONS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); } @Override diff --git a/src/main/java/gregtech/common/blocks/StoneVariantBlock.java b/src/main/java/gregtech/common/blocks/StoneVariantBlock.java index 39194eea2a0..028232e4277 100644 --- a/src/main/java/gregtech/common/blocks/StoneVariantBlock.java +++ b/src/main/java/gregtech/common/blocks/StoneVariantBlock.java @@ -1,7 +1,7 @@ package gregtech.common.blocks; -import gregtech.api.GregTechAPI; import gregtech.api.block.VariantBlock; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.unification.material.Material; import gregtech.api.unification.material.Materials; @@ -40,7 +40,7 @@ public StoneVariantBlock(@NotNull StoneVariant stoneVariant) { setSoundType(SoundType.STONE); setHarvestLevel(ToolClasses.PICKAXE, 0); setDefaultState(getState(StoneType.BLACK_GRANITE)); - setCreativeTab(GregTechAPI.TAB_GREGTECH_DECORATIONS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); } @NotNull diff --git a/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java b/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java index 975c0708a22..020b980c4d5 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.BlockFence; @@ -15,7 +15,7 @@ public BlockGregFence() { setHardness(2.0F); setResistance(5.0F); setSoundType(SoundType.WOOD); - setCreativeTab(GregTechAPI.TAB_GREGTECH_DECORATIONS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); setHarvestLevel(ToolClasses.AXE, 0); } } diff --git a/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java b/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java index 29c539eca35..b2772d01645 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.BlockFenceGate; @@ -14,7 +14,7 @@ public BlockGregFenceGate() { setHardness(2.0F); setResistance(5.0F); setSoundType(SoundType.WOOD); - setCreativeTab(GregTechAPI.TAB_GREGTECH_DECORATIONS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); setHarvestLevel(ToolClasses.AXE, 0); } } diff --git a/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java b/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java index acab4c9dd43..c0b29e7f3a8 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.common.blocks.MetaBlocks; @@ -35,7 +35,7 @@ public BlockGregWoodSlab() { setResistance(5.0F); setSoundType(SoundType.WOOD); setHarvestLevel(ToolClasses.AXE, 0); - setCreativeTab(GregTechAPI.TAB_GREGTECH_DECORATIONS); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); this.useNeighborBrightness = true; } diff --git a/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java b/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java index 533cf4249d2..2e5800175d3 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.common.blocks.MetaBlocks; import gregtech.core.CoreModule; @@ -31,7 +31,7 @@ public BlockRubberLeaves() { .withProperty(CHECK_DECAY, true) .withProperty(DECAYABLE, true)); setTranslationKey("rubber_leaves"); - setCreativeTab(GregTechAPI.TAB_GREGTECH); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH); Blocks.FIRE.setFireInfo(this, 30, 60); } diff --git a/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java b/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java index bd89801a699..bd1cdfd2890 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.common.items.MetaItems; @@ -27,7 +27,7 @@ public BlockRubberLog() { .withProperty(LOG_AXIS, BlockLog.EnumAxis.Y) .withProperty(NATURAL, false)); setTranslationKey("rubber_log"); - setCreativeTab(GregTechAPI.TAB_GREGTECH); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH); setHarvestLevel(ToolClasses.AXE, 0); } diff --git a/src/main/java/gregtech/common/blocks/wood/BlockRubberSapling.java b/src/main/java/gregtech/common/blocks/wood/BlockRubberSapling.java index cd9b35d8232..f341bc8c342 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockRubberSapling.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockRubberSapling.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.GregTechAPI; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.common.worldgen.WorldGenRubberTree; import net.minecraft.block.BlockBush; @@ -28,7 +28,7 @@ public BlockRubberSapling() { this.setDefaultState(this.blockState.getBaseState() .withProperty(STAGE, 0)); setTranslationKey("rubber_sapling"); - setCreativeTab(GregTechAPI.TAB_GREGTECH); + setCreativeTab(GTCreativeTabs.TAB_GREGTECH); setHardness(0.0F); setSoundType(SoundType.PLANT); } diff --git a/src/main/java/gregtech/common/items/MetaItem1.java b/src/main/java/gregtech/common/items/MetaItem1.java index 9620ccaa60b..99d7f2f8a51 100644 --- a/src/main/java/gregtech/common/items/MetaItem1.java +++ b/src/main/java/gregtech/common/items/MetaItem1.java @@ -3,7 +3,12 @@ import gregtech.api.GTValues; import gregtech.api.GregTechAPI; import gregtech.api.capability.impl.CommonFluidFilters; -import gregtech.api.items.metaitem.*; +import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.api.items.metaitem.ElectricStats; +import gregtech.api.items.metaitem.FilteredFluidStats; +import gregtech.api.items.metaitem.FoodStats; +import gregtech.api.items.metaitem.MusicDiscStats; +import gregtech.api.items.metaitem.StandardMetaItem; import gregtech.api.items.metaitem.stats.IItemComponent; import gregtech.api.items.metaitem.stats.IItemContainerItemProvider; import gregtech.api.items.metaitem.stats.ItemFluidContainer; @@ -23,7 +28,25 @@ import gregtech.common.ConfigHolder; import gregtech.common.blocks.MetaBlocks; import gregtech.common.entities.GTBoatEntity.GTBoatType; -import gregtech.common.items.behaviors.*; +import gregtech.common.items.behaviors.ClipboardBehavior; +import gregtech.common.items.behaviors.ColorSprayBehaviour; +import gregtech.common.items.behaviors.DataItemBehavior; +import gregtech.common.items.behaviors.DoorBehavior; +import gregtech.common.items.behaviors.DynamiteBehaviour; +import gregtech.common.items.behaviors.FacadeItem; +import gregtech.common.items.behaviors.FertilizerBehavior; +import gregtech.common.items.behaviors.FoamSprayerBehavior; +import gregtech.common.items.behaviors.GTBoatBehavior; +import gregtech.common.items.behaviors.IntCircuitBehaviour; +import gregtech.common.items.behaviors.ItemMagnetBehavior; +import gregtech.common.items.behaviors.LighterBehaviour; +import gregtech.common.items.behaviors.MultiblockBuilderBehavior; +import gregtech.common.items.behaviors.NanoSaberBehavior; +import gregtech.common.items.behaviors.ProspectorScannerBehavior; +import gregtech.common.items.behaviors.TerminalBehaviour; +import gregtech.common.items.behaviors.TooltipBehavior; +import gregtech.common.items.behaviors.TricorderBehavior; +import gregtech.common.items.behaviors.TurbineRotorBehavior; import gregtech.common.items.behaviors.monitorplugin.AdvancedMonitorPluginBehavior; import gregtech.common.items.behaviors.monitorplugin.FakeGuiPluginBehavior; import gregtech.common.items.behaviors.monitorplugin.OnlinePicPluginBehavior; @@ -149,53 +172,53 @@ public void registerSubItems() { // out of registry order so it can reference the Empty Spray Can SPRAY_SOLVENT = addItem(60, "spray.solvent").setMaxStackSize(1) .addComponents(new ColorSprayBehaviour(SPRAY_EMPTY.getStackForm(), 1024, -1)) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); for (int i = 0; i < EnumDyeColor.values().length; i++) { SPRAY_CAN_DYES[i] = addItem(62 + i, "spray.can.dyes." + EnumDyeColor.values()[i].getName()) .setMaxStackSize(1) .addComponents(new ColorSprayBehaviour(SPRAY_EMPTY.getStackForm(), 512, i)) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); } // Fluid Cells: ID 78-88 FLUID_CELL = addItem(78, "fluid_cell") .addComponents(new FilteredFluidStats(1000, 1800, true, false, false, false, false), new ItemFluidContainer()) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); FLUID_CELL_UNIVERSAL = addItem(79, "fluid_cell.universal") .addComponents(new FilteredFluidStats(1000, 1800, true, false, false, false, true), new ItemFluidContainer()) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); FLUID_CELL_LARGE_STEEL = addItem(80, "large_fluid_cell.steel") .addComponents(new FilteredFluidStats(8000, Materials.Steel.getProperty(PropertyKey.FLUID_PIPE).getMaxFluidTemperature(), true, false, false, false, true), new ItemFluidContainer()) .setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Steel, M * 4))) // ingot * 4 - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); FLUID_CELL_LARGE_ALUMINIUM = addItem(81, "large_fluid_cell.aluminium") .addComponents(new FilteredFluidStats(32000, Materials.Aluminium.getProperty(PropertyKey.FLUID_PIPE).getMaxFluidTemperature(), true, false, false, false, true), new ItemFluidContainer()) .setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Aluminium, M * 4))) // ingot * 4 - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); FLUID_CELL_LARGE_STAINLESS_STEEL = addItem(82, "large_fluid_cell.stainless_steel") .addComponents(new FilteredFluidStats(64000, Materials.StainlessSteel.getProperty(PropertyKey.FLUID_PIPE).getMaxFluidTemperature(), true, true, true, false, true), new ItemFluidContainer()) .setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.StainlessSteel, M * 6))) // ingot * 6 - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); FLUID_CELL_LARGE_TITANIUM = addItem(83, "large_fluid_cell.titanium") .addComponents(new FilteredFluidStats(128000, Materials.Titanium.getProperty(PropertyKey.FLUID_PIPE).getMaxFluidTemperature(), true, true, false, false, true), new ItemFluidContainer()) .setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Titanium, M * 6))) // ingot * 6 - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); FLUID_CELL_LARGE_TUNGSTEN_STEEL = addItem(84, "large_fluid_cell.tungstensteel") .addComponents(new FilteredFluidStats(512000, @@ -203,36 +226,36 @@ public void registerSubItems() { true, false, false, true), new ItemFluidContainer()) .setMaxStackSize(32) .setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.TungstenSteel, M * 8))) // ingot * 8 - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); FLUID_CELL_GLASS_VIAL = addItem(85, "fluid_cell.glass_vial") .addComponents(new FilteredFluidStats(1000, 1200, false, true, false, false, true), new ItemFluidContainer()) .setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Glass, M / 4))) // small dust - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); // Limited-Use Items: ID 89-95 TOOL_MATCHES = addItem(89, "tool.matches") .addComponents(new LighterBehaviour(false, false, false)) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); TOOL_MATCHBOX = addItem(90, "tool.matchbox") .addComponents(new LighterBehaviour(false, true, false, Items.PAPER, 16)) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); TOOL_LIGHTER_INVAR = addItem(91, "tool.lighter.invar") .setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Invar, M * 2))) .addComponents(new LighterBehaviour(GTUtility.gregtechId("lighter_open"), true, true, true)) .addComponents(new FilteredFluidStats(100, true, CommonFluidFilters.LIGHTER_FUEL)) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); TOOL_LIGHTER_PLATINUM = addItem(92, "tool.lighter.platinum") .setMaterialInfo(new ItemMaterialInfo(new MaterialStack(Materials.Platinum, M * 2))) .addComponents(new LighterBehaviour(GTUtility.gregtechId("lighter_open"), true, true, true)) .addComponents(new FilteredFluidStats(1000, true, CommonFluidFilters.LIGHTER_FUEL)) .setMaxStackSize(1) .setRarity(EnumRarity.UNCOMMON) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BOTTLE_PURPLE_DRINK = addItem(93, "bottle.purple.drink").addComponents(new FoodStats(8, 0.2F, true, true, new ItemStack(Items.GLASS_BOTTLE), new RandomPotionEffect(MobEffects.HASTE, 800, 1, 90))); @@ -737,69 +760,69 @@ public void registerSubItems() { // Usable Items: ID 460-490 DYNAMITE = addItem(460, "dynamite") .addComponents(new DynamiteBehaviour()) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); INTEGRATED_CIRCUIT = addItem(461, "circuit.integrated").addComponents(new IntCircuitBehaviour()) .setModelAmount(33); FOAM_SPRAYER = addItem(462, "foam_sprayer").addComponents(new FoamSprayerBehavior()) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); NANO_SABER = addItem(463, "nano_saber").addComponents(ElectricStats.createElectricItem(4_000_000L, GTValues.HV)) .addComponents(new NanoSaberBehavior()) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); NANO_SABER.getMetaItem().addPropertyOverride(NanoSaberBehavior.OVERRIDE_KEY_LOCATION, (stack, worldIn, entityIn) -> NanoSaberBehavior.isItemActive(stack) ? 1.0f : 0.0f); CLIPBOARD = addItem(464, "clipboard") .addComponents(new ClipboardBehavior()) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); TERMINAL = addItem(465, "terminal") .addComponents(new HardwareProvider(), new TerminalBehaviour()) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); PROSPECTOR_LV = addItem(466, "prospector.lv") .addComponents(ElectricStats.createElectricItem(100_000L, GTValues.LV), new ProspectorScannerBehavior(2, GTValues.LV)) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); PROSPECTOR_HV = addItem(467, "prospector.hv") .addComponents(ElectricStats.createElectricItem(1_600_000L, GTValues.HV), new ProspectorScannerBehavior(3, GTValues.HV)) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); PROSPECTOR_LUV = addItem(468, "prospector.luv") .addComponents(ElectricStats.createElectricItem(1_000_000_000L, GTValues.LuV), new ProspectorScannerBehavior(5, GTValues.LuV)) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); TRICORDER_SCANNER = addItem(469, "tricorder_scanner") .addComponents(ElectricStats.createElectricItem(100_000L, GTValues.MV), new TricorderBehavior(2)) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); DEBUG_SCANNER = addItem(470, "debug_scanner") .addComponents(new TricorderBehavior(3)) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); ITEM_MAGNET_LV = addItem(471, "item_magnet.lv") .addComponents(ElectricStats.createElectricItem(100_000L, GTValues.LV), new ItemMagnetBehavior(8)) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); ITEM_MAGNET_HV = addItem(472, "item_magnet.hv") .addComponents(ElectricStats.createElectricItem(1_600_000L, GTValues.HV), new ItemMagnetBehavior(32)) .setMaxStackSize(1) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); RUBBER_WOOD_BOAT = addItem(473, "rubber_wood_boat") .addComponents(new GTBoatBehavior(GTBoatType.RUBBER_WOOD_BOAT)).setMaxStackSize(1).setBurnValue(400); TREATED_WOOD_BOAT = addItem(474, "treated_wood_boat") .addComponents(new GTBoatBehavior(GTBoatType.TREATED_WOOD_BOAT)).setMaxStackSize(1).setBurnValue(400); RUBBER_WOOD_DOOR = addItem(475, "rubber_wood_door").addComponents(new DoorBehavior(MetaBlocks.RUBBER_WOOD_DOOR)) - .setBurnValue(200).setCreativeTabs(GregTechAPI.TAB_GREGTECH_DECORATIONS); + .setBurnValue(200).setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); TREATED_WOOD_DOOR = addItem(476, "treated_wood_door") .addComponents(new DoorBehavior(MetaBlocks.TREATED_WOOD_DOOR)).setBurnValue(200) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_DECORATIONS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_DECORATIONS); // Misc Crafting Items: ID 491-515 ENERGIUM_DUST = addItem(491, "energium_dust"); @@ -976,105 +999,105 @@ public void registerSubItems() { // Batteries: 731-775 BATTERY_ULV_TANTALUM = addItem(731, "battery.re.ulv.tantalum") .addComponents(ElectricStats.createRechargeableBattery(1000, GTValues.ULV)) - .setUnificationData(OrePrefix.battery, Tier.ULV).setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setUnificationData(OrePrefix.battery, Tier.ULV).setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_LV_SODIUM = addItem(732, "battery.re.lv.sodium") .addComponents(ElectricStats.createRechargeableBattery(80000, GTValues.LV)) .setUnificationData(OrePrefix.battery, Tier.LV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_MV_SODIUM = addItem(733, "battery.re.mv.sodium") .addComponents(ElectricStats.createRechargeableBattery(360000, GTValues.MV)) .setUnificationData(OrePrefix.battery, Tier.MV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_HV_SODIUM = addItem(734, "battery.re.hv.sodium") .addComponents(ElectricStats.createRechargeableBattery(1200000, GTValues.HV)) .setUnificationData(OrePrefix.battery, Tier.HV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_LV_LITHIUM = addItem(735, "battery.re.lv.lithium") .addComponents(ElectricStats.createRechargeableBattery(120000, GTValues.LV)) .setUnificationData(OrePrefix.battery, Tier.LV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_MV_LITHIUM = addItem(736, "battery.re.mv.lithium") .addComponents(ElectricStats.createRechargeableBattery(420000, GTValues.MV)) .setUnificationData(OrePrefix.battery, Tier.MV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_HV_LITHIUM = addItem(737, "battery.re.hv.lithium") .addComponents(ElectricStats.createRechargeableBattery(1800000, GTValues.HV)) .setUnificationData(OrePrefix.battery, Tier.HV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_LV_CADMIUM = addItem(738, "battery.re.lv.cadmium") .addComponents(ElectricStats.createRechargeableBattery(100000, GTValues.LV)) .setUnificationData(OrePrefix.battery, Tier.LV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_MV_CADMIUM = addItem(739, "battery.re.mv.cadmium") .addComponents(ElectricStats.createRechargeableBattery(400000, GTValues.MV)) .setUnificationData(OrePrefix.battery, Tier.MV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_HV_CADMIUM = addItem(740, "battery.re.hv.cadmium") .addComponents(ElectricStats.createRechargeableBattery(1600000, GTValues.HV)) .setUnificationData(OrePrefix.battery, Tier.HV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); ENERGIUM_CRYSTAL = addItem(741, "energy_crystal") .addComponents(ElectricStats.createRechargeableBattery(6_400_000L, GTValues.HV)) .setUnificationData(OrePrefix.battery, Tier.HV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); LAPOTRON_CRYSTAL = addItem(742, "lapotron_crystal") .addComponents(ElectricStats.createRechargeableBattery(25_000_000L, GTValues.EV)) .setUnificationData(OrePrefix.battery, Tier.EV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_EV_VANADIUM = addItem(743, "battery.ev.vanadium") .addComponents(ElectricStats.createRechargeableBattery(10_240_000L, GTValues.EV)) .setUnificationData(OrePrefix.battery, Tier.EV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_IV_VANADIUM = addItem(744, "battery.iv.vanadium") .addComponents(ElectricStats.createRechargeableBattery(40_960_000L, GTValues.IV)) .setUnificationData(OrePrefix.battery, Tier.IV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_LUV_VANADIUM = addItem(745, "battery.luv.vanadium") .addComponents(ElectricStats.createRechargeableBattery(163_840_000L, GTValues.LuV)) .setUnificationData(OrePrefix.battery, Tier.LuV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_ZPM_NAQUADRIA = addItem(746, "battery.zpm.naquadria") .addComponents(ElectricStats.createRechargeableBattery(655_360_000L, GTValues.ZPM)) .setUnificationData(OrePrefix.battery, Tier.ZPM).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); BATTERY_UV_NAQUADRIA = addItem(747, "battery.uv.naquadria") .addComponents(ElectricStats.createRechargeableBattery(2_621_440_000L, GTValues.UV)) .setUnificationData(OrePrefix.battery, Tier.UV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); ENERGY_LAPOTRONIC_ORB = addItem(748, "energy.lapotronic_orb") .addComponents(ElectricStats.createRechargeableBattery(250_000_000L, GTValues.IV)) .setUnificationData(OrePrefix.battery, Tier.IV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); ENERGY_LAPOTRONIC_ORB_CLUSTER = addItem(749, "energy.lapotronic_orb_cluster") .addComponents(ElectricStats.createRechargeableBattery(1_000_000_000L, GTValues.LuV)) .setUnificationData(OrePrefix.battery, Tier.LuV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); ENERGY_MODULE = addItem(750, "energy.module") .addComponents( new IItemComponent[] { ElectricStats.createRechargeableBattery(4_000_000_000L, GTValues.ZPM) }) .setUnificationData(OrePrefix.battery, Tier.ZPM).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); ENERGY_CLUSTER = addItem(751, "energy.cluster") .addComponents( new IItemComponent[] { ElectricStats.createRechargeableBattery(20_000_000_000L, GTValues.UV) }) .setUnificationData(OrePrefix.battery, Tier.UV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); ZERO_POINT_MODULE = addItem(752, "zpm") .addComponents(ElectricStats.createBattery(2000000000000L, GTValues.ZPM, true)).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); ULTIMATE_BATTERY = addItem(753, "max.battery") .addComponents(ElectricStats.createRechargeableBattery(Long.MAX_VALUE, GTValues.UHV)) .setUnificationData(OrePrefix.battery, Tier.UHV).setModelAmount(8) - .setCreativeTabs(GregTechAPI.TAB_GREGTECH_TOOLS); + .setCreativeTabs(GTCreativeTabs.TAB_GREGTECH_TOOLS); POWER_THRUSTER = addItem(776, "power_thruster").setRarity(EnumRarity.UNCOMMON); POWER_THRUSTER_ADVANCED = addItem(777, "power_thruster_advanced").setRarity(EnumRarity.RARE); diff --git a/src/main/java/gregtech/common/pipelike/cable/BlockCable.java b/src/main/java/gregtech/common/pipelike/cable/BlockCable.java index d384e22e608..a5628d5506f 100644 --- a/src/main/java/gregtech/common/pipelike/cable/BlockCable.java +++ b/src/main/java/gregtech/common/pipelike/cable/BlockCable.java @@ -1,7 +1,7 @@ package gregtech.common.pipelike.cable; -import gregtech.api.GregTechAPI; import gregtech.api.capability.GregtechCapabilities; +import gregtech.api.creativetab.GTCreativeTabs; import gregtech.api.damagesources.DamageSources; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; @@ -54,7 +54,7 @@ public class BlockCable extends BlockMaterialPipe Date: Wed, 10 Jan 2024 09:20:24 -0500 Subject: [PATCH 2/3] move to common --- src/main/java/gregtech/api/block/VariantBlock.java | 2 +- src/main/java/gregtech/api/block/machines/BlockMachine.java | 2 +- .../java/gregtech/api/block/machines/MachineItemBlock.java | 2 +- src/main/java/gregtech/api/items/armor/ArmorMetaItem.java | 2 +- .../java/gregtech/api/items/materialitem/MetaPrefixItem.java | 2 +- src/main/java/gregtech/api/items/metaitem/MetaItem.java | 2 +- src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java | 2 +- src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java | 2 +- src/main/java/gregtech/api/items/toolitem/ItemGTSword.java | 2 +- src/main/java/gregtech/api/items/toolitem/ItemGTTool.java | 2 +- src/main/java/gregtech/api/metatileentity/MetaTileEntity.java | 2 +- .../gregtech/api/pipenet/longdist/BlockLongDistancePipe.java | 2 +- src/main/java/gregtech/common/blocks/BlockAsphalt.java | 2 +- src/main/java/gregtech/common/blocks/BlockCompressed.java | 2 +- src/main/java/gregtech/common/blocks/BlockFrame.java | 2 +- src/main/java/gregtech/common/blocks/BlockGregStairs.java | 2 +- src/main/java/gregtech/common/blocks/BlockLamp.java | 2 +- src/main/java/gregtech/common/blocks/BlockOre.java | 2 +- src/main/java/gregtech/common/blocks/BlockWarningSign.java | 2 +- src/main/java/gregtech/common/blocks/BlockWarningSign1.java | 2 +- src/main/java/gregtech/common/blocks/StoneVariantBlock.java | 2 +- src/main/java/gregtech/common/blocks/wood/BlockGregFence.java | 2 +- .../java/gregtech/common/blocks/wood/BlockGregFenceGate.java | 2 +- .../java/gregtech/common/blocks/wood/BlockGregWoodSlab.java | 2 +- .../java/gregtech/common/blocks/wood/BlockRubberLeaves.java | 2 +- src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java | 2 +- .../java/gregtech/common/blocks/wood/BlockRubberSapling.java | 2 +- .../gregtech/{api => common}/creativetab/GTCreativeTabs.java | 3 ++- src/main/java/gregtech/common/items/MetaItem1.java | 2 +- src/main/java/gregtech/common/pipelike/cable/BlockCable.java | 2 +- .../gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java | 2 +- .../java/gregtech/common/pipelike/itempipe/BlockItemPipe.java | 2 +- .../java/gregtech/common/pipelike/laser/BlockLaserPipe.java | 2 +- .../gregtech/common/pipelike/optical/BlockOpticalPipe.java | 2 +- 34 files changed, 35 insertions(+), 34 deletions(-) rename src/main/java/gregtech/{api => common}/creativetab/GTCreativeTabs.java (95%) diff --git a/src/main/java/gregtech/api/block/VariantBlock.java b/src/main/java/gregtech/api/block/VariantBlock.java index 36f94805195..a674c2d0021 100644 --- a/src/main/java/gregtech/api/block/VariantBlock.java +++ b/src/main/java/gregtech/api/block/VariantBlock.java @@ -1,6 +1,6 @@ package gregtech.api.block; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.Block; diff --git a/src/main/java/gregtech/api/block/machines/BlockMachine.java b/src/main/java/gregtech/api/block/machines/BlockMachine.java index f8d6a355c3c..90cb1e1435c 100644 --- a/src/main/java/gregtech/api/block/machines/BlockMachine.java +++ b/src/main/java/gregtech/api/block/machines/BlockMachine.java @@ -7,7 +7,7 @@ import gregtech.api.block.UnlistedStringProperty; import gregtech.api.cover.Cover; import gregtech.api.cover.IFacadeCover; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.metatileentity.MetaTileEntity; diff --git a/src/main/java/gregtech/api/block/machines/MachineItemBlock.java b/src/main/java/gregtech/api/block/machines/MachineItemBlock.java index 152042081a8..a62062c9ebd 100644 --- a/src/main/java/gregtech/api/block/machines/MachineItemBlock.java +++ b/src/main/java/gregtech/api/block/machines/MachineItemBlock.java @@ -2,7 +2,7 @@ import gregtech.api.GTValues; import gregtech.api.GregTechAPI; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.metatileentity.ITieredMetaTileEntity; import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.pipenet.block.BlockPipe; diff --git a/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java b/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java index 950d06861d9..7af120acdf3 100644 --- a/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java +++ b/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java @@ -1,6 +1,6 @@ package gregtech.api.items.armor; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.metaitem.MetaItem; import gregtech.api.items.metaitem.stats.IEnchantabilityHelper; import gregtech.api.items.metaitem.stats.IItemComponent; diff --git a/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java b/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java index cd9b5a90c2b..441ace32948 100644 --- a/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java +++ b/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java @@ -1,7 +1,7 @@ package gregtech.api.items.materialitem; import gregtech.api.GTValues; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.damagesources.DamageSources; import gregtech.api.items.armor.ArmorMetaItem; import gregtech.api.items.metaitem.StandardMetaItem; diff --git a/src/main/java/gregtech/api/items/metaitem/MetaItem.java b/src/main/java/gregtech/api/items/metaitem/MetaItem.java index e96f427b7ac..f827efd9898 100644 --- a/src/main/java/gregtech/api/items/metaitem/MetaItem.java +++ b/src/main/java/gregtech/api/items/metaitem/MetaItem.java @@ -7,7 +7,7 @@ import gregtech.api.capability.IPropertyFluidFilter; import gregtech.api.capability.impl.CombinedCapabilityProvider; import gregtech.api.capability.impl.ElectricItem; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.gui.ModularUI; import gregtech.api.items.OreDictNames; import gregtech.api.items.gui.ItemUIFactory; diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java b/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java index fdda4c700b0..05cede150e9 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java @@ -1,6 +1,6 @@ package gregtech.api.items.toolitem; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.state.IBlockState; diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java b/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java index 9b17011147a..0869487a68d 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java @@ -1,6 +1,6 @@ package gregtech.api.items.toolitem; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.state.IBlockState; diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java b/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java index 98689f97b7f..91992a8a897 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java @@ -1,6 +1,6 @@ package gregtech.api.items.toolitem; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.state.IBlockState; diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java b/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java index a1091c5299f..9852c1e431d 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java @@ -1,6 +1,6 @@ package gregtech.api.items.toolitem; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; import net.minecraft.block.state.IBlockState; diff --git a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java index e5a91db0e76..88e67cf3b97 100644 --- a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java @@ -17,7 +17,7 @@ import gregtech.api.cover.CoverRayTracer; import gregtech.api.cover.CoverSaveHandler; import gregtech.api.cover.CoverUtil; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.gui.ModularUI; import gregtech.api.items.itemhandlers.GTItemStackHandler; import gregtech.api.items.toolitem.ToolClasses; diff --git a/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java b/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java index 07ebe148833..53e24a406fa 100644 --- a/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java +++ b/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java @@ -1,6 +1,6 @@ package gregtech.api.pipenet.longdist; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.Block; diff --git a/src/main/java/gregtech/common/blocks/BlockAsphalt.java b/src/main/java/gregtech/common/blocks/BlockAsphalt.java index 120e122f4da..728245fcd90 100644 --- a/src/main/java/gregtech/common/blocks/BlockAsphalt.java +++ b/src/main/java/gregtech/common/blocks/BlockAsphalt.java @@ -2,7 +2,7 @@ import gregtech.api.block.IStateHarvestLevel; import gregtech.api.block.VariantBlock; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; diff --git a/src/main/java/gregtech/common/blocks/BlockCompressed.java b/src/main/java/gregtech/common/blocks/BlockCompressed.java index 87d7cef9e91..b554ada0316 100644 --- a/src/main/java/gregtech/common/blocks/BlockCompressed.java +++ b/src/main/java/gregtech/common/blocks/BlockCompressed.java @@ -1,6 +1,6 @@ package gregtech.common.blocks; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.unification.material.Material; import gregtech.api.unification.material.info.MaterialIconType; diff --git a/src/main/java/gregtech/common/blocks/BlockFrame.java b/src/main/java/gregtech/common/blocks/BlockFrame.java index 21a4dced430..263176828ab 100644 --- a/src/main/java/gregtech/common/blocks/BlockFrame.java +++ b/src/main/java/gregtech/common/blocks/BlockFrame.java @@ -1,6 +1,6 @@ package gregtech.common.blocks; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.pipenet.block.BlockPipe; diff --git a/src/main/java/gregtech/common/blocks/BlockGregStairs.java b/src/main/java/gregtech/common/blocks/BlockGregStairs.java index 78e170cb233..25a6d02a128 100644 --- a/src/main/java/gregtech/common/blocks/BlockGregStairs.java +++ b/src/main/java/gregtech/common/blocks/BlockGregStairs.java @@ -1,6 +1,6 @@ package gregtech.common.blocks; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.BlockStairs; diff --git a/src/main/java/gregtech/common/blocks/BlockLamp.java b/src/main/java/gregtech/common/blocks/BlockLamp.java index c4a76c8fa1b..0ba6f30e684 100644 --- a/src/main/java/gregtech/common/blocks/BlockLamp.java +++ b/src/main/java/gregtech/common/blocks/BlockLamp.java @@ -1,7 +1,7 @@ package gregtech.common.blocks; import gregtech.api.GTValues; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.unification.OreDictUnifier; import gregtech.api.unification.material.MarkerMaterials; import gregtech.api.unification.ore.OrePrefix; diff --git a/src/main/java/gregtech/common/blocks/BlockOre.java b/src/main/java/gregtech/common/blocks/BlockOre.java index 6fecaeb13fa..707a671d5e2 100644 --- a/src/main/java/gregtech/common/blocks/BlockOre.java +++ b/src/main/java/gregtech/common/blocks/BlockOre.java @@ -1,6 +1,6 @@ package gregtech.common.blocks; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.unification.material.Material; import gregtech.api.unification.material.info.MaterialFlags; diff --git a/src/main/java/gregtech/common/blocks/BlockWarningSign.java b/src/main/java/gregtech/common/blocks/BlockWarningSign.java index 90486abd135..003a8883a78 100644 --- a/src/main/java/gregtech/common/blocks/BlockWarningSign.java +++ b/src/main/java/gregtech/common/blocks/BlockWarningSign.java @@ -1,7 +1,7 @@ package gregtech.common.blocks; import gregtech.api.block.VariantBlock; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.SoundType; diff --git a/src/main/java/gregtech/common/blocks/BlockWarningSign1.java b/src/main/java/gregtech/common/blocks/BlockWarningSign1.java index 8cf8252b7fe..840d069506c 100644 --- a/src/main/java/gregtech/common/blocks/BlockWarningSign1.java +++ b/src/main/java/gregtech/common/blocks/BlockWarningSign1.java @@ -1,7 +1,7 @@ package gregtech.common.blocks; import gregtech.api.block.VariantBlock; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.SoundType; diff --git a/src/main/java/gregtech/common/blocks/StoneVariantBlock.java b/src/main/java/gregtech/common/blocks/StoneVariantBlock.java index 028232e4277..dddbc486369 100644 --- a/src/main/java/gregtech/common/blocks/StoneVariantBlock.java +++ b/src/main/java/gregtech/common/blocks/StoneVariantBlock.java @@ -1,7 +1,7 @@ package gregtech.common.blocks; import gregtech.api.block.VariantBlock; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.unification.material.Material; import gregtech.api.unification.material.Materials; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java b/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java index 020b980c4d5..70f6af0503d 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.BlockFence; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java b/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java index b2772d01645..efa597718e8 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import net.minecraft.block.BlockFenceGate; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java b/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java index c0b29e7f3a8..aa9f09fd1b9 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.common.blocks.MetaBlocks; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java b/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java index 2e5800175d3..0e9965223a8 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.blocks.MetaBlocks; import gregtech.core.CoreModule; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java b/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java index bd1cdfd2890..32922315433 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.common.items.MetaItems; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockRubberSapling.java b/src/main/java/gregtech/common/blocks/wood/BlockRubberSapling.java index f341bc8c342..653a31fc9a8 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockRubberSapling.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockRubberSapling.java @@ -1,6 +1,6 @@ package gregtech.common.blocks.wood; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.worldgen.WorldGenRubberTree; import net.minecraft.block.BlockBush; diff --git a/src/main/java/gregtech/api/creativetab/GTCreativeTabs.java b/src/main/java/gregtech/common/creativetab/GTCreativeTabs.java similarity index 95% rename from src/main/java/gregtech/api/creativetab/GTCreativeTabs.java rename to src/main/java/gregtech/common/creativetab/GTCreativeTabs.java index e27e1c846bb..95d308dde3e 100644 --- a/src/main/java/gregtech/api/creativetab/GTCreativeTabs.java +++ b/src/main/java/gregtech/common/creativetab/GTCreativeTabs.java @@ -1,6 +1,7 @@ -package gregtech.api.creativetab; +package gregtech.common.creativetab; import gregtech.api.GTValues; +import gregtech.api.creativetab.BaseCreativeTab; import gregtech.api.unification.OreDictUnifier; import gregtech.api.unification.material.Materials; import gregtech.api.unification.ore.OrePrefix; diff --git a/src/main/java/gregtech/common/items/MetaItem1.java b/src/main/java/gregtech/common/items/MetaItem1.java index 99d7f2f8a51..d04650cdbb4 100644 --- a/src/main/java/gregtech/common/items/MetaItem1.java +++ b/src/main/java/gregtech/common/items/MetaItem1.java @@ -3,7 +3,7 @@ import gregtech.api.GTValues; import gregtech.api.GregTechAPI; import gregtech.api.capability.impl.CommonFluidFilters; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.metaitem.ElectricStats; import gregtech.api.items.metaitem.FilteredFluidStats; import gregtech.api.items.metaitem.FoodStats; diff --git a/src/main/java/gregtech/common/pipelike/cable/BlockCable.java b/src/main/java/gregtech/common/pipelike/cable/BlockCable.java index a5628d5506f..cda1df3d065 100644 --- a/src/main/java/gregtech/common/pipelike/cable/BlockCable.java +++ b/src/main/java/gregtech/common/pipelike/cable/BlockCable.java @@ -1,7 +1,7 @@ package gregtech.common.pipelike.cable; import gregtech.api.capability.GregtechCapabilities; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.damagesources.DamageSources; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; diff --git a/src/main/java/gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java b/src/main/java/gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java index 5f7f4597197..60ae106cb8a 100644 --- a/src/main/java/gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java +++ b/src/main/java/gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java @@ -1,6 +1,6 @@ package gregtech.common.pipelike.fluidpipe; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.pipenet.block.material.BlockMaterialPipe; import gregtech.api.pipenet.tile.IPipeTile; diff --git a/src/main/java/gregtech/common/pipelike/itempipe/BlockItemPipe.java b/src/main/java/gregtech/common/pipelike/itempipe/BlockItemPipe.java index a2af7796cae..056620faa6c 100644 --- a/src/main/java/gregtech/common/pipelike/itempipe/BlockItemPipe.java +++ b/src/main/java/gregtech/common/pipelike/itempipe/BlockItemPipe.java @@ -1,6 +1,6 @@ package gregtech.common.pipelike.itempipe; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.pipenet.block.material.BlockMaterialPipe; import gregtech.api.pipenet.tile.IPipeTile; diff --git a/src/main/java/gregtech/common/pipelike/laser/BlockLaserPipe.java b/src/main/java/gregtech/common/pipelike/laser/BlockLaserPipe.java index 66bb3a51282..9b07e71c995 100644 --- a/src/main/java/gregtech/common/pipelike/laser/BlockLaserPipe.java +++ b/src/main/java/gregtech/common/pipelike/laser/BlockLaserPipe.java @@ -1,7 +1,7 @@ package gregtech.common.pipelike.laser; import gregtech.api.capability.GregtechTileCapabilities; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.pipenet.block.BlockPipe; diff --git a/src/main/java/gregtech/common/pipelike/optical/BlockOpticalPipe.java b/src/main/java/gregtech/common/pipelike/optical/BlockOpticalPipe.java index 2dc128f123a..19a90f1a22d 100644 --- a/src/main/java/gregtech/common/pipelike/optical/BlockOpticalPipe.java +++ b/src/main/java/gregtech/common/pipelike/optical/BlockOpticalPipe.java @@ -1,7 +1,7 @@ package gregtech.common.pipelike.optical; import gregtech.api.capability.GregtechTileCapabilities; -import gregtech.api.creativetab.GTCreativeTabs; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.pipenet.block.BlockPipe; From 5d362ac38b2b5f1bab76ecce2957ff8ab0a61d3b Mon Sep 17 00:00:00 2001 From: TechLord22 <37029404+techlord22@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:53:13 -0500 Subject: [PATCH 3/3] spotless --- src/main/java/gregtech/api/block/VariantBlock.java | 2 +- src/main/java/gregtech/api/block/machines/BlockMachine.java | 2 +- src/main/java/gregtech/api/block/machines/MachineItemBlock.java | 2 +- src/main/java/gregtech/api/items/armor/ArmorMetaItem.java | 2 +- .../java/gregtech/api/items/materialitem/MetaPrefixItem.java | 2 +- src/main/java/gregtech/api/items/metaitem/MetaItem.java | 2 +- src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java | 2 +- src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java | 2 +- src/main/java/gregtech/api/items/toolitem/ItemGTSword.java | 2 +- src/main/java/gregtech/api/items/toolitem/ItemGTTool.java | 2 +- src/main/java/gregtech/api/metatileentity/MetaTileEntity.java | 2 +- .../gregtech/api/pipenet/longdist/BlockLongDistancePipe.java | 2 +- src/main/java/gregtech/common/blocks/BlockCompressed.java | 2 +- src/main/java/gregtech/common/blocks/BlockFrame.java | 2 +- src/main/java/gregtech/common/blocks/BlockGregStairs.java | 2 +- src/main/java/gregtech/common/blocks/BlockLamp.java | 2 +- src/main/java/gregtech/common/blocks/BlockOre.java | 2 +- src/main/java/gregtech/common/blocks/BlockWarningSign.java | 2 +- src/main/java/gregtech/common/blocks/BlockWarningSign1.java | 2 +- src/main/java/gregtech/common/blocks/StoneVariantBlock.java | 2 +- src/main/java/gregtech/common/blocks/wood/BlockGregFence.java | 2 +- .../java/gregtech/common/blocks/wood/BlockGregFenceGate.java | 2 +- .../java/gregtech/common/blocks/wood/BlockGregWoodSlab.java | 2 +- .../java/gregtech/common/blocks/wood/BlockRubberLeaves.java | 2 +- src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java | 2 +- src/main/java/gregtech/common/items/MetaItem1.java | 2 +- src/main/java/gregtech/common/pipelike/cable/BlockCable.java | 2 +- .../java/gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java | 2 +- .../java/gregtech/common/pipelike/itempipe/BlockItemPipe.java | 2 +- .../java/gregtech/common/pipelike/laser/BlockLaserPipe.java | 2 +- .../java/gregtech/common/pipelike/optical/BlockOpticalPipe.java | 2 +- 31 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/main/java/gregtech/api/block/VariantBlock.java b/src/main/java/gregtech/api/block/VariantBlock.java index a674c2d0021..7e31dd48c3b 100644 --- a/src/main/java/gregtech/api/block/VariantBlock.java +++ b/src/main/java/gregtech/api/block/VariantBlock.java @@ -1,7 +1,7 @@ package gregtech.api.block; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.Block; import net.minecraft.block.material.Material; diff --git a/src/main/java/gregtech/api/block/machines/BlockMachine.java b/src/main/java/gregtech/api/block/machines/BlockMachine.java index 90cb1e1435c..5480aabc67b 100644 --- a/src/main/java/gregtech/api/block/machines/BlockMachine.java +++ b/src/main/java/gregtech/api/block/machines/BlockMachine.java @@ -7,7 +7,6 @@ import gregtech.api.block.UnlistedStringProperty; import gregtech.api.cover.Cover; import gregtech.api.cover.IFacadeCover; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.metatileentity.MetaTileEntity; @@ -17,6 +16,7 @@ import gregtech.api.pipenet.IBlockAppearance; import gregtech.api.util.GTUtility; import gregtech.client.renderer.handler.MetaTileEntityRenderer; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.items.MetaItems; import gregtech.integration.ctm.IFacadeWrapper; diff --git a/src/main/java/gregtech/api/block/machines/MachineItemBlock.java b/src/main/java/gregtech/api/block/machines/MachineItemBlock.java index a62062c9ebd..ca0cd6417dd 100644 --- a/src/main/java/gregtech/api/block/machines/MachineItemBlock.java +++ b/src/main/java/gregtech/api/block/machines/MachineItemBlock.java @@ -2,7 +2,6 @@ import gregtech.api.GTValues; import gregtech.api.GregTechAPI; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.metatileentity.ITieredMetaTileEntity; import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.pipenet.block.BlockPipe; @@ -11,6 +10,7 @@ import gregtech.api.util.LocalizationUtils; import gregtech.client.utils.TooltipHelper; import gregtech.common.ConfigHolder; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.Block; import net.minecraft.block.state.IBlockState; diff --git a/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java b/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java index 7af120acdf3..a972b669c95 100644 --- a/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java +++ b/src/main/java/gregtech/api/items/armor/ArmorMetaItem.java @@ -1,9 +1,9 @@ package gregtech.api.items.armor; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.metaitem.MetaItem; import gregtech.api.items.metaitem.stats.IEnchantabilityHelper; import gregtech.api.items.metaitem.stats.IItemComponent; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.model.ModelBiped; diff --git a/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java b/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java index 441ace32948..614e5fa1076 100644 --- a/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java +++ b/src/main/java/gregtech/api/items/materialitem/MetaPrefixItem.java @@ -1,7 +1,6 @@ package gregtech.api.items.materialitem; import gregtech.api.GTValues; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.damagesources.DamageSources; import gregtech.api.items.armor.ArmorMetaItem; import gregtech.api.items.metaitem.StandardMetaItem; @@ -15,6 +14,7 @@ import gregtech.api.unification.material.registry.MaterialRegistry; import gregtech.api.unification.ore.OrePrefix; import gregtech.api.unification.stack.UnificationEntry; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.BlockCauldron; import net.minecraft.block.state.IBlockState; diff --git a/src/main/java/gregtech/api/items/metaitem/MetaItem.java b/src/main/java/gregtech/api/items/metaitem/MetaItem.java index f827efd9898..f4cedc0f729 100644 --- a/src/main/java/gregtech/api/items/metaitem/MetaItem.java +++ b/src/main/java/gregtech/api/items/metaitem/MetaItem.java @@ -7,7 +7,6 @@ import gregtech.api.capability.IPropertyFluidFilter; import gregtech.api.capability.impl.CombinedCapabilityProvider; import gregtech.api.capability.impl.ElectricItem; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.gui.ModularUI; import gregtech.api.items.OreDictNames; import gregtech.api.items.gui.ItemUIFactory; @@ -33,6 +32,7 @@ import gregtech.api.util.LocalizationUtils; import gregtech.client.utils.ToolChargeBarRenderer; import gregtech.common.ConfigHolder; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelBakery; diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java b/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java index 05cede150e9..2537884399a 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTAxe.java @@ -1,7 +1,7 @@ package gregtech.api.items.toolitem; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.state.IBlockState; import net.minecraft.client.util.ITooltipFlag; diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java b/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java index 0869487a68d..13e14e8e574 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTHoe.java @@ -1,7 +1,7 @@ package gregtech.api.items.toolitem; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.state.IBlockState; import net.minecraft.client.util.ITooltipFlag; diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java b/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java index 91992a8a897..2786f91d558 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTSword.java @@ -1,7 +1,7 @@ package gregtech.api.items.toolitem; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.state.IBlockState; import net.minecraft.client.util.ITooltipFlag; diff --git a/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java b/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java index 9852c1e431d..375aadb845c 100644 --- a/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java +++ b/src/main/java/gregtech/api/items/toolitem/ItemGTTool.java @@ -1,7 +1,7 @@ package gregtech.api.items.toolitem; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.util.LocalizationUtils; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.state.IBlockState; import net.minecraft.client.util.ITooltipFlag; diff --git a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java index 88e67cf3b97..ce5bef601ec 100644 --- a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java @@ -17,7 +17,6 @@ import gregtech.api.cover.CoverRayTracer; import gregtech.api.cover.CoverSaveHandler; import gregtech.api.cover.CoverUtil; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.gui.ModularUI; import gregtech.api.items.itemhandlers.GTItemStackHandler; import gregtech.api.items.toolitem.ToolClasses; @@ -34,6 +33,7 @@ import gregtech.client.renderer.texture.Textures; import gregtech.client.utils.BloomEffectUtil; import gregtech.common.ConfigHolder; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.Block; import net.minecraft.block.state.BlockFaceShape; diff --git a/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java b/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java index 53e24a406fa..28339dd7ef2 100644 --- a/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java +++ b/src/main/java/gregtech/api/pipenet/longdist/BlockLongDistancePipe.java @@ -1,7 +1,7 @@ package gregtech.api.pipenet.longdist; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.Block; import net.minecraft.block.material.Material; diff --git a/src/main/java/gregtech/common/blocks/BlockCompressed.java b/src/main/java/gregtech/common/blocks/BlockCompressed.java index b554ada0316..9f2fb91fb16 100644 --- a/src/main/java/gregtech/common/blocks/BlockCompressed.java +++ b/src/main/java/gregtech/common/blocks/BlockCompressed.java @@ -1,6 +1,5 @@ package gregtech.common.blocks; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.unification.material.Material; import gregtech.api.unification.material.info.MaterialIconType; @@ -9,6 +8,7 @@ import gregtech.client.model.modelfactories.MaterialBlockModelLoader; import gregtech.common.ConfigHolder; import gregtech.common.blocks.properties.PropertyMaterial; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.SoundType; import net.minecraft.block.state.IBlockState; diff --git a/src/main/java/gregtech/common/blocks/BlockFrame.java b/src/main/java/gregtech/common/blocks/BlockFrame.java index 263176828ab..88bbf3c2374 100644 --- a/src/main/java/gregtech/common/blocks/BlockFrame.java +++ b/src/main/java/gregtech/common/blocks/BlockFrame.java @@ -1,6 +1,5 @@ package gregtech.common.blocks; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.pipenet.block.BlockPipe; @@ -15,6 +14,7 @@ import gregtech.client.model.modelfactories.MaterialBlockModelLoader; import gregtech.common.ConfigHolder; import gregtech.common.blocks.properties.PropertyMaterial; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.Block; import net.minecraft.block.SoundType; diff --git a/src/main/java/gregtech/common/blocks/BlockGregStairs.java b/src/main/java/gregtech/common/blocks/BlockGregStairs.java index 25a6d02a128..e8b2a12f2c7 100644 --- a/src/main/java/gregtech/common/blocks/BlockGregStairs.java +++ b/src/main/java/gregtech/common/blocks/BlockGregStairs.java @@ -1,7 +1,7 @@ package gregtech.common.blocks; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.BlockStairs; import net.minecraft.block.state.IBlockState; diff --git a/src/main/java/gregtech/common/blocks/BlockLamp.java b/src/main/java/gregtech/common/blocks/BlockLamp.java index 0ba6f30e684..28d26cfd41a 100644 --- a/src/main/java/gregtech/common/blocks/BlockLamp.java +++ b/src/main/java/gregtech/common/blocks/BlockLamp.java @@ -1,13 +1,13 @@ package gregtech.common.blocks; import gregtech.api.GTValues; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.unification.OreDictUnifier; import gregtech.api.unification.material.MarkerMaterials; import gregtech.api.unification.ore.OrePrefix; import gregtech.client.model.lamp.LampBakedModel; import gregtech.client.model.lamp.LampModelType; import gregtech.client.utils.BloomEffectUtil; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.Block; import net.minecraft.block.SoundType; diff --git a/src/main/java/gregtech/common/blocks/BlockOre.java b/src/main/java/gregtech/common/blocks/BlockOre.java index 707a671d5e2..db69901b8ff 100644 --- a/src/main/java/gregtech/common/blocks/BlockOre.java +++ b/src/main/java/gregtech/common/blocks/BlockOre.java @@ -1,6 +1,5 @@ package gregtech.common.blocks; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.unification.material.Material; import gregtech.api.unification.material.info.MaterialFlags; @@ -13,6 +12,7 @@ import gregtech.client.model.OreBakedModel; import gregtech.client.utils.BloomEffectUtil; import gregtech.common.blocks.properties.PropertyStoneType; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.Block; import net.minecraft.block.SoundType; diff --git a/src/main/java/gregtech/common/blocks/BlockWarningSign.java b/src/main/java/gregtech/common/blocks/BlockWarningSign.java index 003a8883a78..4fdf97dd2fd 100644 --- a/src/main/java/gregtech/common/blocks/BlockWarningSign.java +++ b/src/main/java/gregtech/common/blocks/BlockWarningSign.java @@ -1,8 +1,8 @@ package gregtech.common.blocks; import gregtech.api.block.VariantBlock; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; diff --git a/src/main/java/gregtech/common/blocks/BlockWarningSign1.java b/src/main/java/gregtech/common/blocks/BlockWarningSign1.java index 840d069506c..199a892d781 100644 --- a/src/main/java/gregtech/common/blocks/BlockWarningSign1.java +++ b/src/main/java/gregtech/common/blocks/BlockWarningSign1.java @@ -1,8 +1,8 @@ package gregtech.common.blocks; import gregtech.api.block.VariantBlock; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; diff --git a/src/main/java/gregtech/common/blocks/StoneVariantBlock.java b/src/main/java/gregtech/common/blocks/StoneVariantBlock.java index dddbc486369..72fcb6d5180 100644 --- a/src/main/java/gregtech/common/blocks/StoneVariantBlock.java +++ b/src/main/java/gregtech/common/blocks/StoneVariantBlock.java @@ -1,11 +1,11 @@ package gregtech.common.blocks; import gregtech.api.block.VariantBlock; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.unification.material.Material; import gregtech.api.unification.material.Materials; import gregtech.api.unification.ore.OrePrefix; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.SoundType; import net.minecraft.block.material.MapColor; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java b/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java index 70f6af0503d..ba3188cac78 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockGregFence.java @@ -1,7 +1,7 @@ package gregtech.common.blocks.wood; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.BlockFence; import net.minecraft.block.SoundType; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java b/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java index efa597718e8..aff946015e2 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockGregFenceGate.java @@ -1,7 +1,7 @@ package gregtech.common.blocks.wood; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.BlockFenceGate; import net.minecraft.block.BlockPlanks; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java b/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java index aa9f09fd1b9..d2cc8e2b96e 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockGregWoodSlab.java @@ -1,8 +1,8 @@ package gregtech.common.blocks.wood; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.common.blocks.MetaBlocks; +import gregtech.common.creativetab.GTCreativeTabs; import net.minecraft.block.BlockSlab; import net.minecraft.block.SoundType; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java b/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java index 0e9965223a8..2149165afa4 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockRubberLeaves.java @@ -1,7 +1,7 @@ package gregtech.common.blocks.wood; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.blocks.MetaBlocks; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.core.CoreModule; import net.minecraft.block.BlockLeaves; diff --git a/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java b/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java index 32922315433..7c2f2b09f85 100644 --- a/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java +++ b/src/main/java/gregtech/common/blocks/wood/BlockRubberLog.java @@ -1,7 +1,7 @@ package gregtech.common.blocks.wood; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.items.MetaItems; import net.minecraft.block.BlockLog; diff --git a/src/main/java/gregtech/common/items/MetaItem1.java b/src/main/java/gregtech/common/items/MetaItem1.java index d04650cdbb4..d194fedd4f5 100644 --- a/src/main/java/gregtech/common/items/MetaItem1.java +++ b/src/main/java/gregtech/common/items/MetaItem1.java @@ -3,7 +3,6 @@ import gregtech.api.GTValues; import gregtech.api.GregTechAPI; import gregtech.api.capability.impl.CommonFluidFilters; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.metaitem.ElectricStats; import gregtech.api.items.metaitem.FilteredFluidStats; import gregtech.api.items.metaitem.FoodStats; @@ -27,6 +26,7 @@ import gregtech.api.util.RandomPotionEffect; import gregtech.common.ConfigHolder; import gregtech.common.blocks.MetaBlocks; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.entities.GTBoatEntity.GTBoatType; import gregtech.common.items.behaviors.ClipboardBehavior; import gregtech.common.items.behaviors.ColorSprayBehaviour; diff --git a/src/main/java/gregtech/common/pipelike/cable/BlockCable.java b/src/main/java/gregtech/common/pipelike/cable/BlockCable.java index cda1df3d065..7c8c2e153d4 100644 --- a/src/main/java/gregtech/common/pipelike/cable/BlockCable.java +++ b/src/main/java/gregtech/common/pipelike/cable/BlockCable.java @@ -1,7 +1,6 @@ package gregtech.common.pipelike.cable; import gregtech.api.capability.GregtechCapabilities; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.damagesources.DamageSources; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; @@ -14,6 +13,7 @@ import gregtech.api.util.GTUtility; import gregtech.client.renderer.pipe.CableRenderer; import gregtech.client.renderer.pipe.PipeRenderer; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.pipelike.cable.net.WorldENet; import gregtech.common.pipelike.cable.tile.TileEntityCable; import gregtech.common.pipelike.cable.tile.TileEntityCableTickable; diff --git a/src/main/java/gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java b/src/main/java/gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java index 60ae106cb8a..31d5d8ef646 100644 --- a/src/main/java/gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java +++ b/src/main/java/gregtech/common/pipelike/fluidpipe/BlockFluidPipe.java @@ -1,6 +1,5 @@ package gregtech.common.pipelike.fluidpipe; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.pipenet.block.material.BlockMaterialPipe; import gregtech.api.pipenet.tile.IPipeTile; @@ -11,6 +10,7 @@ import gregtech.api.util.EntityDamageUtil; import gregtech.client.renderer.pipe.FluidPipeRenderer; import gregtech.client.renderer.pipe.PipeRenderer; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.pipelike.fluidpipe.net.WorldFluidPipeNet; import gregtech.common.pipelike.fluidpipe.tile.TileEntityFluidPipe; import gregtech.common.pipelike.fluidpipe.tile.TileEntityFluidPipeTickable; diff --git a/src/main/java/gregtech/common/pipelike/itempipe/BlockItemPipe.java b/src/main/java/gregtech/common/pipelike/itempipe/BlockItemPipe.java index 056620faa6c..85a18ca231c 100644 --- a/src/main/java/gregtech/common/pipelike/itempipe/BlockItemPipe.java +++ b/src/main/java/gregtech/common/pipelike/itempipe/BlockItemPipe.java @@ -1,6 +1,5 @@ package gregtech.common.pipelike.itempipe; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.pipenet.block.material.BlockMaterialPipe; import gregtech.api.pipenet.tile.IPipeTile; @@ -10,6 +9,7 @@ import gregtech.api.unification.material.registry.MaterialRegistry; import gregtech.client.renderer.pipe.ItemPipeRenderer; import gregtech.client.renderer.pipe.PipeRenderer; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.pipelike.itempipe.net.WorldItemPipeNet; import gregtech.common.pipelike.itempipe.tile.TileEntityItemPipe; import gregtech.common.pipelike.itempipe.tile.TileEntityItemPipeTickable; diff --git a/src/main/java/gregtech/common/pipelike/laser/BlockLaserPipe.java b/src/main/java/gregtech/common/pipelike/laser/BlockLaserPipe.java index 9b07e71c995..ff6f9c693f8 100644 --- a/src/main/java/gregtech/common/pipelike/laser/BlockLaserPipe.java +++ b/src/main/java/gregtech/common/pipelike/laser/BlockLaserPipe.java @@ -1,7 +1,6 @@ package gregtech.common.pipelike.laser; import gregtech.api.capability.GregtechTileCapabilities; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.pipenet.block.BlockPipe; @@ -9,6 +8,7 @@ import gregtech.api.pipenet.tile.TileEntityPipeBase; import gregtech.client.renderer.pipe.LaserPipeRenderer; import gregtech.client.utils.BloomEffectUtil; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.pipelike.laser.net.WorldLaserPipeNet; import gregtech.common.pipelike.laser.tile.TileEntityLaserPipe; diff --git a/src/main/java/gregtech/common/pipelike/optical/BlockOpticalPipe.java b/src/main/java/gregtech/common/pipelike/optical/BlockOpticalPipe.java index 19a90f1a22d..3e52f60faba 100644 --- a/src/main/java/gregtech/common/pipelike/optical/BlockOpticalPipe.java +++ b/src/main/java/gregtech/common/pipelike/optical/BlockOpticalPipe.java @@ -1,13 +1,13 @@ package gregtech.common.pipelike.optical; import gregtech.api.capability.GregtechTileCapabilities; -import gregtech.common.creativetab.GTCreativeTabs; import gregtech.api.items.toolitem.ToolClasses; import gregtech.api.items.toolitem.ToolHelper; import gregtech.api.pipenet.block.BlockPipe; import gregtech.api.pipenet.tile.IPipeTile; import gregtech.api.pipenet.tile.TileEntityPipeBase; import gregtech.client.renderer.pipe.OpticalPipeRenderer; +import gregtech.common.creativetab.GTCreativeTabs; import gregtech.common.pipelike.optical.net.WorldOpticalPipeNet; import gregtech.common.pipelike.optical.tile.TileEntityOpticalPipe;