mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Move Creative Tab class to library since it's only used there for the registry.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user