Class CreativeTabs


  • public abstract class CreativeTabs
    extends java.lang.Object
    • Constructor Detail

      • CreativeTabs

        public CreativeTabs​(int index,
                            java.lang.String label)
    • 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()
      • shouldHidePlayerInventory

        public boolean shouldHidePlayerInventory()
      • 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.