类 VanillaServerListeners
java.lang.Object
net.neoforged.neoforge.resource.VanillaServerListeners
Keys for vanilla
reload listeners
, used to specify dependency ordering in the AddServerReloadListenersEvent
.
Due to the volume of vanilla listeners, these keys are automatically generated based on the class name.
-
字段概要
字段修饰符和类型字段说明static final ResourceLocation
static final ResourceLocation
Sentinel field that will always reference the first reload listener in the vanilla order.static final ResourceLocation
private static final Map
<Class<?>, ResourceLocation> static final ResourceLocation
Sentinel field that will always reference the last reload listener in the vanilla order.static final ResourceLocation
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static @Nullable ResourceLocation
getNameForClass
(Class<? extends PreparableReloadListener> cls) private static ResourceLocation
key
(Class<? extends PreparableReloadListener> cls)
-
字段详细资料
-
KNOWN_CLASSES
-
RECIPES
-
FUNCTIONS
-
ADVANCEMENTS
-
FIRST
Sentinel field that will always reference the first reload listener in the vanilla order. -
LAST
Sentinel field that will always reference the last reload listener in the vanilla order.
-
-
构造器详细资料
-
VanillaServerListeners
public VanillaServerListeners()
-
-
方法详细资料
-
key
-
getNameForClass
@Nullable @Internal public static @Nullable ResourceLocation getNameForClass(Class<? extends PreparableReloadListener> cls)
-