public abstract class CreativeTabs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CreativeTabs[] |
creativeTabArray |
static CreativeTabs |
tabAllSearch |
static CreativeTabs |
tabBlock |
static CreativeTabs |
tabBrewing |
static CreativeTabs |
tabCombat |
static CreativeTabs |
tabDecorations |
static CreativeTabs |
tabFood |
static CreativeTabs |
tabInventory |
static CreativeTabs |
tabMaterials |
static CreativeTabs |
tabMisc |
static CreativeTabs |
tabRedstone |
static CreativeTabs |
tabTools |
static CreativeTabs |
tabTransport |
Constructor and Description |
---|
CreativeTabs(int index,
java.lang.String label) |
CreativeTabs(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() |
static int |
getNextID() |
EnumEnchantmentType[] |
getRelevantEnchantmentTypes()
Returns the enchantment types relevant to this tab
|
int |
getSearchbarWidth()
Gets the width of the search bar of the creative tab, use this if your
creative tab name overflows together with a custom texture.
|
int |
getTabColumn()
returns index % 6
|
abstract Item |
getTabIconItem() |
int |
getTabIndex() |
java.lang.String |
getTabLabel() |
int |
getTabPage() |
java.lang.String |
getTranslatedTabLabel()
Gets the translated Label.
|
boolean |
hasRelevantEnchantmentType(EnumEnchantmentType enchantmentType) |
boolean |
hasSearchBar()
Determines if the search bar should be shown for this tab.
|
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 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
public CreativeTabs(java.lang.String label)
public CreativeTabs(int index, java.lang.String label)
public int getTabIndex()
public CreativeTabs setBackgroundImageName(java.lang.String texture)
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 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)
public int getTabPage()
public static int getNextID()
public boolean hasSearchBar()
public int getSearchbarWidth()