Package net.neoforged.neoforge.resource
Class 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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceLocationstatic final ResourceLocationSentinel field that will always reference the first reload listener in the vanilla order.static final ResourceLocationprivate static final Map<Class<?>, ResourceLocation> static final ResourceLocationSentinel field that will always reference the last reload listener in the vanilla order.static final ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ResourceLocationgetNameForClass(Class<? extends PreparableReloadListener> cls) private static ResourceLocationkey(Class<? extends PreparableReloadListener> cls)
-
Field Details
-
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.
-
-
Constructor Details
-
VanillaServerListeners
public VanillaServerListeners()
-
-
Method Details
-
key
-
getNameForClass
@Nullable @Internal public static @Nullable ResourceLocation getNameForClass(Class<? extends PreparableReloadListener> cls)
-