Class CreativeModeTab

java.lang.Object
net.minecraft.world.item.CreativeModeTab

public abstract class CreativeModeTab extends Object
  • Field Details

  • Constructor Details

    • CreativeModeTab

      public CreativeModeTab(String label)
    • CreativeModeTab

      public CreativeModeTab(int p_40773_, String p_40774_)
  • Method Details

    • getId

      public int getId()
    • getRecipeFolderName

      public String getRecipeFolderName()
    • getDisplayName

      public Component getDisplayName()
    • getIconItem

      public ItemStack getIconItem()
    • makeIcon

      public abstract ItemStack makeIcon()
    • getBackgroundSuffix

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

      @Deprecated public CreativeModeTab setBackgroundSuffix(String p_40780_)
    • setBackgroundImage

      public CreativeModeTab setBackgroundImage(ResourceLocation texture)
    • setRecipeFolderName

      public CreativeModeTab setRecipeFolderName(String p_40785_)
    • showTitle

      public boolean showTitle()
    • hideTitle

      public CreativeModeTab hideTitle()
    • canScroll

      public boolean canScroll()
    • hideScroll

      public CreativeModeTab hideScroll()
    • getColumn

      public int getColumn()
    • isTopRow

      public boolean isTopRow()
    • isAlignedRight

      public boolean isAlignedRight()
    • getEnchantmentCategories

      public EnchantmentCategory[] getEnchantmentCategories()
    • setEnchantmentCategories

      public CreativeModeTab setEnchantmentCategories(EnchantmentCategory... p_40782_)
    • hasEnchantmentCategory

      public boolean hasEnchantmentCategory(@Nullable EnchantmentCategory p_40777_)
    • fillItemList

      public void fillItemList(NonNullList<ItemStack> p_40778_)
    • 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, CreativeModeTab newGroup)