mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
30 lines
545 B
Java
30 lines
545 B
Java
package tconstruct.common;
|
|||
|
|
|
||
|
|
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();
|
||
|
|
}
|
||
|
|
}
|