Package net.minecraft.creativetab
Class CreativeTabs
- java.lang.Object
-
- net.minecraft.creativetab.CreativeTabs
-
public abstract class CreativeTabs extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description CreativeTabs(int index, java.lang.String label)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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> parList)
+ only shows items which have tabToDisplayOn == thisboolean
drawInForegroundOfTab()
java.lang.String
getBackgroundImageName()
int
getIconItemDamage()
ItemStack
getIconItemStack()
EnumEnchantmentType[]
getRelevantEnchantmentTypes()
+ Returns the enchantment types relevant to this tabint
getTabColumn()
+ returns index % 6abstract Item
getTabIconItem()
int
getTabIndex()
java.lang.String
getTabLabel()
java.lang.String
getTranslatedTabLabel()
+ Gets the translated Label.boolean
hasRelevantEnchantmentType(EnumEnchantmentType enchantmentType)
boolean
isTabInFirstRow()
+ returns tabIndex < 6CreativeTabs
setBackgroundImageName(java.lang.String texture)
CreativeTabs
setNoScrollbar()
CreativeTabs
setNoTitle()
CreativeTabs
setRelevantEnchantmentTypes(EnumEnchantmentType... types)
+ Sets the enchantment types for populating this tab with enchanting booksboolean
shouldHidePlayerInventory()
-
-
-
Field Detail
-
creativeTabArray
public static final CreativeTabs[] creativeTabArray
-
tabBlock
public static final CreativeTabs tabBlock
-
tabDecorations
public static final CreativeTabs tabDecorations
-
tabRedstone
public static final CreativeTabs tabRedstone
-
tabTransport
public static final CreativeTabs tabTransport
-
tabMisc
public static final CreativeTabs tabMisc
-
tabAllSearch
public static final CreativeTabs tabAllSearch
-
tabFood
public static final CreativeTabs tabFood
-
tabTools
public static final CreativeTabs tabTools
-
tabCombat
public static final CreativeTabs tabCombat
-
tabBrewing
public static final CreativeTabs tabBrewing
-
tabMaterials
public static final CreativeTabs tabMaterials
-
tabInventory
public static final CreativeTabs tabInventory
-
-
Method Detail
-
getTabIndex
public int getTabIndex()
-
getTabLabel
public java.lang.String getTabLabel()
-
getTranslatedTabLabel
public java.lang.String getTranslatedTabLabel()
+ Gets the translated Label.
-
getIconItemStack
public ItemStack getIconItemStack()
-
getTabIconItem
public abstract Item getTabIconItem()
-
getIconItemDamage
public int getIconItemDamage()
-
getBackgroundImageName
public java.lang.String getBackgroundImageName()
-
setBackgroundImageName
public CreativeTabs setBackgroundImageName(java.lang.String texture)
-
drawInForegroundOfTab
public boolean drawInForegroundOfTab()
-
setNoTitle
public CreativeTabs setNoTitle()
-
shouldHidePlayerInventory
public boolean shouldHidePlayerInventory()
-
setNoScrollbar
public CreativeTabs setNoScrollbar()
-
getTabColumn
public int getTabColumn()
+ returns index % 6
-
isTabInFirstRow
public boolean isTabInFirstRow()
+ returns tabIndex < 6
-
getRelevantEnchantmentTypes
public EnumEnchantmentType[] getRelevantEnchantmentTypes()
+ Returns the enchantment types relevant to this tab
-
setRelevantEnchantmentTypes
public CreativeTabs setRelevantEnchantmentTypes(EnumEnchantmentType... types)
+ Sets the enchantment types for populating this tab with enchanting books
-
hasRelevantEnchantmentType
public boolean hasRelevantEnchantmentType(EnumEnchantmentType enchantmentType)
-
displayAllReleventItems
public void displayAllReleventItems(java.util.List<ItemStack> parList)
+ only shows items which have tabToDisplayOn == this
-
addEnchantmentBooksToList
public void addEnchantmentBooksToList(java.util.List<ItemStack> itemList, EnumEnchantmentType... enchantmentType)
+ Adds the enchantment books from the supplied EnumEnchantmentType to the given list.
-
-