Class ItemGroup


  • public abstract class ItemGroup
    extends java.lang.Object
    • Field Detail

      • TAB_BUILDING_BLOCKS

        public static final ItemGroup TAB_BUILDING_BLOCKS
      • TAB_DECORATIONS

        public static final ItemGroup TAB_DECORATIONS
      • TAB_REDSTONE

        public static final ItemGroup TAB_REDSTONE
      • TAB_TRANSPORTATION

        public static final ItemGroup TAB_TRANSPORTATION
      • TAB_MISC

        public static final ItemGroup TAB_MISC
      • TAB_SEARCH

        public static final ItemGroup TAB_SEARCH
      • TAB_FOOD

        public static final ItemGroup TAB_FOOD
      • TAB_TOOLS

        public static final ItemGroup TAB_TOOLS
      • TAB_COMBAT

        public static final ItemGroup TAB_COMBAT
      • TAB_BREWING

        public static final ItemGroup TAB_BREWING
      • TAB_MATERIALS

        public static final ItemGroup TAB_MATERIALS
      • TAB_HOTBAR

        public static final ItemGroup TAB_HOTBAR
      • TAB_INVENTORY

        public static final ItemGroup TAB_INVENTORY
      • id

        private final int id
      • langId

        private final java.lang.String langId
      • recipeFolderName

        private java.lang.String recipeFolderName
      • backgroundSuffix

        @Deprecated
        private java.lang.String backgroundSuffix
        Deprecated.
      • canScroll

        private boolean canScroll
      • showTitle

        private boolean showTitle
      • iconItemStack

        private ItemStack iconItemStack
      • CREATIVE_INVENTORY_TABS

        private static final ResourceLocation CREATIVE_INVENTORY_TABS
    • Constructor Detail

      • ItemGroup

        public ItemGroup​(java.lang.String label)
      • ItemGroup

        public ItemGroup​(int p_i1853_1_,
                         java.lang.String p_i1853_2_)
    • Method Detail

      • getId

        public int getId()
      • getRecipeFolderName

        public java.lang.String getRecipeFolderName()
      • getIconItem

        public ItemStack getIconItem()
      • makeIcon

        public abstract ItemStack makeIcon()
      • getBackgroundSuffix

        @Deprecated
        public java.lang.String getBackgroundSuffix()
        Deprecated.
        Forge use getBackgroundImage() instead
      • setRecipeFolderName

        public ItemGroup setRecipeFolderName​(java.lang.String p_199783_1_)
      • showTitle

        public boolean showTitle()
      • canScroll

        public boolean canScroll()
      • getColumn

        public int getColumn()
      • isTopRow

        public boolean isTopRow()
      • isAlignedRight

        public boolean isAlignedRight()
      • getEnchantmentCategories

        public EnchantmentType[] getEnchantmentCategories()
      • hasEnchantmentCategory

        public boolean hasEnchantmentCategory​(@Nullable
                                              EnchantmentType p_111226_1_)
      • getTabPage

        public int getTabPage()
      • hasSearchBar

        public boolean hasSearchBar()
      • getSearchbarWidth

        public 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.
        Returns:
        The width of the search bar, 89 by default
      • getLabelColor

        public int getLabelColor()
      • getSlotColor

        public int getSlotColor()
      • getGroupCountSafe

        public static int getGroupCountSafe()
      • addGroupSafe

        private static int addGroupSafe​(int index,
                                        ItemGroup newGroup)