From 45d696fa2fb66acd00a339ce2059b4313410501c Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 26 Sep 2024 18:55:33 -0500 Subject: [PATCH] additional creative tab constructor --- src/main/java/train/common/core/CreativeTabTraincraft.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/train/common/core/CreativeTabTraincraft.java b/src/main/java/train/common/core/CreativeTabTraincraft.java index bb30594b6..a554ceaa7 100644 --- a/src/main/java/train/common/core/CreativeTabTraincraft.java +++ b/src/main/java/train/common/core/CreativeTabTraincraft.java @@ -13,7 +13,6 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.StatCollector; -import train.common.library.ItemIDs; import train.common.library.TraincraftRegistry; import java.util.List; @@ -27,6 +26,11 @@ public CreativeTabTraincraft(String name, String MODID, String textureName) { tabItem= TraincraftRegistry.RegisterItem(new Item(),MODID,textureName,null); } + public CreativeTabTraincraft(String name, Item itm) { + super(CreativeTabs.getNextID(), name); + tabItem= itm; + } + @Override public ItemStack getIconItemStack() { return new ItemStack(tabItem);