类 CreativeModeTabRegistry
java.lang.Object
net.neoforged.neoforge.common.CreativeModeTabRegistry
-
字段概要
字段修饰符和类型字段说明private static final ResourceLocation
private static final List
<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 void
addTabOrder
(CreativeModeTab tab, ResourceLocation name) static List
<CreativeModeTab> static @Nullable ResourceLocation
getName
(CreativeModeTab tab) 返回 the name of the given CreativeModeTab, or null。(专用程序包) static PreparableReloadListener
static List
<CreativeModeTab> 返回 an unmodifiable view of the sorted list of creative mode tabs in ascending order。static @Nullable CreativeModeTab
getTab
(ResourceLocation name) 返回 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<CreativeModeTab> tierList) static void
sortTabs()
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CREATIVE_MODE_TAB_ORDERING_JSON
-
SORTED_TABS
-
SORTED_TABS_VIEW
-
DEFAULT_TABS
-
edges
-
-
构造器详细资料
-
CreativeModeTabRegistry
public CreativeModeTabRegistry()
-
-
方法详细资料
-
getSortedCreativeModeTabs
返回 an unmodifiable view of the sorted list of creative mode tabs in ascending order。- 返回:
- an unmodifiable view of the sorted list of creative mode tabs in ascending order
-
getDefaultTabs
-
getTab
返回 the CreativeModeTab with the given name, or null。- 参数:
name
- the name to look up- 返回:
- the CreativeModeTab with the given name, or null
-
getName
返回 the name of the given CreativeModeTab, or null。- 参数:
tab
- the tab to look up- 返回:
- the name of the given CreativeModeTab, or null
-
getReloadListener
-
recalculateItemCreativeModeTabs
private static void recalculateItemCreativeModeTabs() -
setCreativeModeTabOrder
-
runInServerThreadIfPossible
private static void runInServerThreadIfPossible(it.unimi.dsi.fastutil.booleans.BooleanConsumer runnable) -
sortTabs
@Internal public static void sortTabs() -
addTabOrder
-