类 AddServerReloadListenersEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.SortedReloadListenerEvent
net.neoforged.neoforge.event.AddServerReloadListenersEvent
The main ResourceManager is recreated on each reload, just after
ReloadableServerResources
's creation.
The event is fired on each reload and lets modders add their own ReloadListeners, for server-side resources.
The event is fired on the NeoForge.EVENT_BUS
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.SortedReloadListenerEvent
SortedReloadListenerEvent.NameLookup
-
字段概要
字段 -
构造器概要
构造器构造器说明AddServerReloadListenersEvent
(ReloadableServerResources serverResources, RegistryAccess registryAccess) -
方法概要
修饰符和类型方法说明This context object holds data relevant to the current reload, such as staged tags.Provides access to the loaded registries associated with these server resources.private static ResourceLocation
lookupName
(PreparableReloadListener listener) 从类继承的方法 net.neoforged.neoforge.event.SortedReloadListenerEvent
addDependency, addListener, getGraph, getLastVanillaListener, getNameLookup, getRegistry
-
字段详细资料
-
serverResources
-
registryAccess
-
-
构造器详细资料
-
AddServerReloadListenersEvent
@Internal public AddServerReloadListenersEvent(ReloadableServerResources serverResources, RegistryAccess registryAccess)
-
-
方法详细资料
-
getServerResources
- 返回:
- The
ReloadableServerResources
being reloaded.
-
getConditionContext
This context object holds data relevant to the current reload, such as staged tags.- 返回:
- The condition context for the currently active reload.
-
getRegistryAccess
Provides access to the loaded registries associated with these server resources. All built-in and dynamic registries are loaded and frozen by this point.- 返回:
- The RegistryAccess context for the currently active reload.
-
lookupName
-