Class ItemGroup

java.lang.Object
net.minecraft.item.ItemGroup

public abstract class ItemGroup extends Object
  • Field Details

    • TABS

      public static ItemGroup[] TABS
    • 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_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 String langId
    • displayName

      private final ITextComponent displayName
    • recipeFolderName

      private String recipeFolderName
    • backgroundSuffix

      @Deprecated private String backgroundSuffix
      Deprecated.
    • backgroundLocation

      private ResourceLocation backgroundLocation
    • canScroll

      private boolean canScroll
    • showTitle

      private boolean showTitle
    • enchantmentCategories

      private EnchantmentType[] enchantmentCategories
    • iconItemStack

      private ItemStack iconItemStack
    • CREATIVE_INVENTORY_TABS

      private static final ResourceLocation CREATIVE_INVENTORY_TABS
  • Constructor Details

    • ItemGroup

      public ItemGroup(String label)
    • ItemGroup

      public ItemGroup(int p_i1853_1_, String p_i1853_2_)
  • Method Details

    • getId

      public int getId()
    • getRecipeFolderName

      public String getRecipeFolderName()
    • getDisplayName

      public ITextComponent getDisplayName()
    • getIconItem

      public ItemStack getIconItem()
    • makeIcon

      public abstract ItemStack makeIcon()
    • getBackgroundSuffix

      @Deprecated public String getBackgroundSuffix()
      Deprecated.
      Forge use getBackgroundImage() instead
    • setBackgroundSuffix

      @Deprecated public ItemGroup setBackgroundSuffix(String p_78025_1_)
    • setBackgroundImage

      public ItemGroup setBackgroundImage(ResourceLocation texture)
    • setRecipeFolderName

      public ItemGroup setRecipeFolderName(String p_199783_1_)
    • showTitle

      public boolean showTitle()
    • hideTitle

      public ItemGroup hideTitle()
    • canScroll

      public boolean canScroll()
    • hideScroll

      public ItemGroup hideScroll()
    • getColumn

      public int getColumn()
    • isTopRow

      public boolean isTopRow()
    • isAlignedRight

      public boolean isAlignedRight()
    • getEnchantmentCategories

      public EnchantmentType[] getEnchantmentCategories()
    • setEnchantmentCategories

      public ItemGroup setEnchantmentCategories(EnchantmentType... p_111229_1_)
    • hasEnchantmentCategory

      public boolean hasEnchantmentCategory(@Nullable EnchantmentType p_111226_1_)
    • fillItemList

      public void fillItemList(NonNullList<ItemStack> p_78018_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
    • getBackgroundImage

      public ResourceLocation getBackgroundImage()
    • getTabsImage

      public ResourceLocation getTabsImage()
    • getLabelColor

      public int getLabelColor()
    • getSlotColor

      public int getSlotColor()
    • getGroupCountSafe

      public static int getGroupCountSafe()
    • addGroupSafe

      private static int addGroupSafe(int index, ItemGroup newGroup)