public abstract class CreativeTabs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CreativeTabs[] |
creativeTabArray |
private boolean |
drawTitle
Whether to draw the title in the foreground of the creative GUI
|
private EnumEnchantmentType[] |
enchantmentTypes |
private boolean |
hasScrollbar |
private ItemStack |
iconItemStack |
static CreativeTabs |
tabAllSearch |
static CreativeTabs |
tabBlock |
static CreativeTabs |
tabBrewing |
static CreativeTabs |
tabCombat |
static CreativeTabs |
tabDecorations |
static CreativeTabs |
tabFood |
private int |
tabIndex |
static CreativeTabs |
tabInventory |
private java.lang.String |
tabLabel |
static CreativeTabs |
tabMaterials |
static CreativeTabs |
tabMisc |
static CreativeTabs |
tabRedstone |
static CreativeTabs |
tabTools |
static CreativeTabs |
tabTransport |
private java.lang.String |
theTexture
Texture to use.
|
Constructor and Description |
---|
CreativeTabs(int index,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
void |
addEnchantmentBooksToList(java.util.List<ItemStack> itemList,
EnumEnchantmentType... enchantmentType)
Adds the enchantment books from the supplied EnumEnchantmentType to the given list.
|
void |
displayAllReleventItems(java.util.List<ItemStack> p_78018_1_)
only shows items which have tabToDisplayOn == this
|
boolean |
drawInForegroundOfTab() |
java.lang.String |
getBackgroundImageName() |
int |
getIconItemDamage() |
ItemStack |
getIconItemStack() |
EnumEnchantmentType[] |
getRelevantEnchantmentTypes()
Returns the enchantment types relevant to this tab
|
int |
getTabColumn()
returns index % 6
|
abstract Item |
getTabIconItem() |
int |
getTabIndex() |
java.lang.String |
getTabLabel() |
java.lang.String |
getTranslatedTabLabel()
Gets the translated Label.
|
boolean |
hasRelevantEnchantmentType(EnumEnchantmentType enchantmentType) |
boolean |
isTabInFirstRow()
returns tabIndex < 6
|
CreativeTabs |
setBackgroundImageName(java.lang.String texture) |
CreativeTabs |
setNoScrollbar() |
CreativeTabs |
setNoTitle() |
CreativeTabs |
setRelevantEnchantmentTypes(EnumEnchantmentType... types)
Sets the enchantment types for populating this tab with enchanting books
|
boolean |
shouldHidePlayerInventory() |
public static final CreativeTabs[] creativeTabArray
public static final CreativeTabs tabBlock
public static final CreativeTabs tabDecorations
public static final CreativeTabs tabRedstone
public static final CreativeTabs tabTransport
public static final CreativeTabs tabMisc
public static final CreativeTabs tabAllSearch
public static final CreativeTabs tabFood
public static final CreativeTabs tabTools
public static final CreativeTabs tabCombat
public static final CreativeTabs tabBrewing
public static final CreativeTabs tabMaterials
public static final CreativeTabs tabInventory
private final int tabIndex
private final java.lang.String tabLabel
private java.lang.String theTexture
private boolean hasScrollbar
private boolean drawTitle
private EnumEnchantmentType[] enchantmentTypes
private ItemStack iconItemStack
public int getTabIndex()
public java.lang.String getTabLabel()
public java.lang.String getTranslatedTabLabel()
public ItemStack getIconItemStack()
public abstract Item getTabIconItem()
public int getIconItemDamage()
public java.lang.String getBackgroundImageName()
public CreativeTabs setBackgroundImageName(java.lang.String texture)
public boolean drawInForegroundOfTab()
public CreativeTabs setNoTitle()
public boolean shouldHidePlayerInventory()
public CreativeTabs setNoScrollbar()
public int getTabColumn()
public boolean isTabInFirstRow()
public EnumEnchantmentType[] getRelevantEnchantmentTypes()
public CreativeTabs setRelevantEnchantmentTypes(EnumEnchantmentType... types)
public boolean hasRelevantEnchantmentType(EnumEnchantmentType enchantmentType)
public void displayAllReleventItems(java.util.List<ItemStack> p_78018_1_)
public void addEnchantmentBooksToList(java.util.List<ItemStack> itemList, EnumEnchantmentType... enchantmentType)