Package net.minecraftforge.common
Class CreativeModeTabRegistry
java.lang.Object
net.minecraftforge.common.CreativeModeTabRegistry
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
private static final com.google.common.collect.BiMap<ResourceLocation,
CreativeModeTab> private static final com.google.common.collect.Multimap<ResourceLocation,
ResourceLocation> private static final org.slf4j.Logger
private static final List<CreativeModeTab>
private static final List<CreativeModeTab>
private static final com.google.common.collect.BiMap<ResourceLocation,
CreativeModeTab> private static final com.google.common.collect.Multimap<ResourceLocation,
ResourceLocation> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private static ResourceLocation
getCreativeModeTabName
(Object entry) static @Nullable ResourceLocation
getName
(CreativeModeTab tab) Returns the name of the given CreativeModeTab, or null.(package private) static PreparableReloadListener
static List<CreativeModeTab>
Returns an unmodifiable view of the sorted list of creative mode tabs in ascending order.static @Nullable CreativeModeTab
getTab
(ResourceLocation name) Returns the CreativeModeTab with the given name, or null.private static void
processCreativeModeTab
(CreativeModeTab creativeModeTab, ResourceLocation name, List<Object> afterEntries, List<Object> beforeEntries) private static void
private static CreativeModeTab
registerCreativeModeTab
(Consumer<CreativeModeTab.Builder> configurator, ResourceLocation name, List<Object> afterEntries, List<Object> beforeEntries) private static void
runInServerThreadIfPossible
(it.unimi.dsi.fastutil.booleans.BooleanConsumer runnable) private static void
setCreativeModeTabOrder
(List<CreativeModeTab> tierList)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CREATIVE_MODE_TAB_ORDERING_JSON
-
SORTED_TABS
-
SORTED_TABS_VIEW
-
creativeModeTabs
private static final com.google.common.collect.BiMap<ResourceLocation,CreativeModeTab> creativeModeTabs -
vanillaCreativeModeTabs
private static final com.google.common.collect.BiMap<ResourceLocation,CreativeModeTab> vanillaCreativeModeTabs -
edges
-
vanillaEdges
private static final com.google.common.collect.Multimap<ResourceLocation,ResourceLocation> vanillaEdges
-
-
Constructor Details
-
CreativeModeTabRegistry
public CreativeModeTabRegistry()
-
-
Method Details
-
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
-
getTab
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
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
-
processCreativeModeTab
private static void processCreativeModeTab(CreativeModeTab creativeModeTab, ResourceLocation name, List<Object> afterEntries, List<Object> beforeEntries) -
getCreativeModeTabName
-
getReloadListener
-
recalculateItemCreativeModeTabs
private static void recalculateItemCreativeModeTabs() -
setCreativeModeTabOrder
-
runInServerThreadIfPossible
private static void runInServerThreadIfPossible(it.unimi.dsi.fastutil.booleans.BooleanConsumer runnable) -
fireCollectionEvent
@Internal public static void fireCollectionEvent() -
registerCreativeModeTab
@Internal private static CreativeModeTab registerCreativeModeTab(Consumer<CreativeModeTab.Builder> configurator, ResourceLocation name, List<Object> afterEntries, List<Object> beforeEntries)
-