mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
- Re-added achievements - Organised all imports (seemed all over the place) - Formatted all code (seemed very combined, used the TinkerStyle)
29 lines
506 B
Java
29 lines
506 B
Java
package tconstruct.library;
|
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
import net.minecraft.item.*;
|
|
|
|
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();
|
|
}
|
|
} |