Move Creative Tab class to library since it's only used there for the registry.

This commit is contained in:
Bernhard Bonigl committed 2014-08-21 21:34:33 +02:00
1 parent ab14d03834
commit fa40865f6e
3 files changed
+2 -3

No files matched your search

@@ -0,0 +1,30 @@
package tconstruct.library;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class TConstructCreativeTab extends CreativeTabs
{
ItemStack display;
public TConstructCreativeTab(String label)
{
super(label);
}
public void init (ItemStack stack)
{
display = stack;
}
public ItemStack getIconItemStack ()
{
return display;
}
public Item getTabIconItem ()
{
return display.getItem();
}
}