mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Fix various bugs, switch creative tabs to self-contained version
This commit is contained in:
1 parent
2629e241cd
commit
db85c10aac
6 files changed
+103
-79
No files matched your search
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user