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[]creativeTabArraystatic CreativeTabstabAllSearchstatic CreativeTabstabBlockstatic CreativeTabstabBrewingstatic CreativeTabstabCombatstatic CreativeTabstabDecorationsstatic CreativeTabstabFoodstatic CreativeTabstabInventorystatic CreativeTabstabMaterialsstatic CreativeTabstabMiscstatic CreativeTabstabRedstonestatic CreativeTabstabToolsstatic CreativeTabstabTransport
-
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 voidaddEnchantmentBooksToList(java.util.List<ItemStack> itemList, EnumEnchantmentType... enchantmentType)+ Adds the enchantment books from the supplied EnumEnchantmentType to the given list.voiddisplayAllReleventItems(java.util.List<ItemStack> parList)+ only shows items which have tabToDisplayOn == thisbooleandrawInForegroundOfTab()java.lang.StringgetBackgroundImageName()intgetIconItemDamage()ItemStackgetIconItemStack()EnumEnchantmentType[]getRelevantEnchantmentTypes()+ Returns the enchantment types relevant to this tabintgetTabColumn()+ returns index % 6abstract ItemgetTabIconItem()intgetTabIndex()java.lang.StringgetTabLabel()java.lang.StringgetTranslatedTabLabel()+ Gets the translated Label.booleanhasRelevantEnchantmentType(EnumEnchantmentType enchantmentType)booleanisTabInFirstRow()+ returns tabIndex < 6CreativeTabssetBackgroundImageName(java.lang.String texture)CreativeTabssetNoScrollbar()CreativeTabssetNoTitle()CreativeTabssetRelevantEnchantmentTypes(EnumEnchantmentType... types)+ Sets the enchantment types for populating this tab with enchanting booksbooleanshouldHidePlayerInventory()
-
-
-
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.
-
-