Class CreativeModeTabRegistry

java.lang.Object
net.neoforged.neoforge.common.CreativeModeTabRegistry

public final class CreativeModeTabRegistry extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final net.minecraft.resources.ResourceLocation
     
    private static final List<net.minecraft.world.item.CreativeModeTab>
     
    private static final com.google.common.collect.Multimap<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation>
     
    private static final org.slf4j.Logger
     
    private static final List<net.minecraft.world.item.CreativeModeTab>
     
    private static final List<net.minecraft.world.item.CreativeModeTab>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static void
    addTabOrder(net.minecraft.world.item.CreativeModeTab tab, net.minecraft.resources.ResourceLocation name)
     
    static List<net.minecraft.world.item.CreativeModeTab>
     
    static @Nullable net.minecraft.resources.ResourceLocation
    getName(net.minecraft.world.item.CreativeModeTab tab)
    Returns the name of the given CreativeModeTab, or null.
    (package private) static net.minecraft.server.packs.resources.PreparableReloadListener
     
    static List<net.minecraft.world.item.CreativeModeTab>
    Returns an unmodifiable view of the sorted list of creative mode tabs in ascending order.
    static @Nullable net.minecraft.world.item.CreativeModeTab
    getTab(net.minecraft.resources.ResourceLocation name)
    Returns the CreativeModeTab with the given name, or null.
    private static void
     
    private static void
    runInServerThreadIfPossible(it.unimi.dsi.fastutil.booleans.BooleanConsumer runnable)
     
    private static void
    setCreativeModeTabOrder(List<net.minecraft.world.item.CreativeModeTab> tierList)
     
    static void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • CREATIVE_MODE_TAB_ORDERING_JSON

      private static final net.minecraft.resources.ResourceLocation CREATIVE_MODE_TAB_ORDERING_JSON
    • SORTED_TABS

      private static final List<net.minecraft.world.item.CreativeModeTab> SORTED_TABS
    • SORTED_TABS_VIEW

      private static final List<net.minecraft.world.item.CreativeModeTab> SORTED_TABS_VIEW
    • DEFAULT_TABS

      private static final List<net.minecraft.world.item.CreativeModeTab> DEFAULT_TABS
    • edges

      private static final com.google.common.collect.Multimap<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> edges
  • Constructor Details

    • CreativeModeTabRegistry

      public CreativeModeTabRegistry()
  • Method Details

    • getSortedCreativeModeTabs

      public static List<net.minecraft.world.item.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<net.minecraft.world.item.CreativeModeTab> getDefaultTabs()
    • getTab

      @Nullable public static @Nullable net.minecraft.world.item.CreativeModeTab getTab(net.minecraft.resources.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 net.minecraft.resources.ResourceLocation getName(net.minecraft.world.item.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 net.minecraft.server.packs.resources.PreparableReloadListener getReloadListener()
    • recalculateItemCreativeModeTabs

      private static void recalculateItemCreativeModeTabs()
    • setCreativeModeTabOrder

      private static void setCreativeModeTabOrder(List<net.minecraft.world.item.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(net.minecraft.world.item.CreativeModeTab tab, net.minecraft.resources.ResourceLocation name)