Package net.minecraftforge.common
Class CreativeModeTabRegistry
java.lang.Object
net.minecraftforge.common.CreativeModeTabRegistry
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationprivate static final List<CreativeModeTab>private static final com.google.common.collect.Multimap<ResourceLocation,ResourceLocation> private static final org.slf4j.Loggerprivate static final List<CreativeModeTab>private static final List<CreativeModeTab>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static voidaddTabOrder(CreativeModeTab tab, ResourceLocation name) static List<CreativeModeTab>static @Nullable ResourceLocationgetName(CreativeModeTab tab) Returns the name of the given CreativeModeTab, or null.(package private) static PreparableReloadListenerstatic List<CreativeModeTab>Returns an unmodifiable view of the sorted list of creative mode tabs in ascending order.static @Nullable CreativeModeTabgetTab(ResourceLocation name) Returns the CreativeModeTab with the given name, or null.private static voidprivate static voidrunInServerThreadIfPossible(it.unimi.dsi.fastutil.booleans.BooleanConsumer runnable) private static voidsetCreativeModeTabOrder(List<CreativeModeTab> tierList) static voidsortTabs()
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
CREATIVE_MODE_TAB_ORDERING_JSON
- 
SORTED_TABS
- 
SORTED_TABS_VIEW
- 
DEFAULT_TABS
- 
edges
 
- 
- 
Constructor Details- 
CreativeModeTabRegistrypublic CreativeModeTabRegistry()
 
- 
- 
Method Details- 
getSortedCreativeModeTabsReturns 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
- 
getTabReturns the CreativeModeTab with the given name, or null.- Parameters:
- name- the name to look up
- Returns:
- the CreativeModeTab with the given name, or null
 
- 
getNameReturns 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
- 
recalculateItemCreativeModeTabsprivate static void recalculateItemCreativeModeTabs()
- 
setCreativeModeTabOrder
- 
runInServerThreadIfPossibleprivate static void runInServerThreadIfPossible(it.unimi.dsi.fastutil.booleans.BooleanConsumer runnable) 
- 
sortTabs@Internal public static void sortTabs()
- 
addTabOrder
 
-