Package io.papermc.paper.event.server
Class ServerResourcesReloadedEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.server.ServerEvent
io.papermc.paper.event.server.ServerResourcesReloadedEvent
Called when resources such as datapacks are reloaded (e.g. /minecraft:reload)
Intended for use to re-register custom recipes, advancements that may be lost during a reload like this.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Gets the cause of the resource reload.static @NotNull HandlerList
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Field Details
-
HANDLER_LIST
-
-
Constructor Details
-
ServerResourcesReloadedEvent
@Internal public ServerResourcesReloadedEvent(@NotNull @NotNull ServerResourcesReloadedEvent.Cause cause)
-
-
Method Details
-
getCause
Gets the cause of the resource reload.- Returns:
- the reload cause
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-