Class CreativeModeTabRegistry

java.lang.Object
net.minecraftforge.common.CreativeModeTabRegistry

public final class CreativeModeTabRegistry extends Object
  • Field Details

  • Constructor Details

    • CreativeModeTabRegistry

      public CreativeModeTabRegistry()
  • Method Details

    • getSortedCreativeModeTabs

      public static List<CreativeModeTab> getSortedCreativeModeTabs()
      Returns an unmodifiable view of the sorted list of creative mode tabs in ascending order.
      Returns:
      an unmodifiable view of the sorted list of creative mode tabs in ascending order
    • getDefaultTabs

      public static List<CreativeModeTab> getDefaultTabs()
    • getTab

      @Nullable public static @Nullable CreativeModeTab getTab(ResourceLocation name)
      Returns the CreativeModeTab with the given name, or null.
      Parameters:
      name - the name to look up
      Returns:
      the CreativeModeTab with the given name, or null
    • getName

      @Nullable public static @Nullable ResourceLocation getName(CreativeModeTab tab)
      Returns the name of the given CreativeModeTab, or null.
      Parameters:
      tab - the tab to look up
      Returns:
      the name of the given CreativeModeTab, or null
    • getReloadListener

      static PreparableReloadListener getReloadListener()
    • recalculateItemCreativeModeTabs

      private static void recalculateItemCreativeModeTabs()
    • setCreativeModeTabOrder

      private static void setCreativeModeTabOrder(List<CreativeModeTab> tierList)
    • runInServerThreadIfPossible

      private static void runInServerThreadIfPossible(it.unimi.dsi.fastutil.booleans.BooleanConsumer runnable)
    • sortTabs

      @Internal public static void sortTabs()
    • addTabOrder

      private static void addTabOrder(CreativeModeTab tab, ResourceLocation name)