mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
27 lines
529 B
Java
27 lines
529 B
Java
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();
|
|
}
|
|
}
|