Class ServerWorldEvents
java.lang.Object
net.fabricmc.fabric.api.event.lifecycle.v1.ServerWorldEvents
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.static interfaceDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<ServerWorldEvents.Load>Deprecated.Called just after a world is loaded by a Minecraft server.static final Event<ServerWorldEvents.Unload>Deprecated.Called before a world is unloaded by a Minecraft server. -
Method Summary
-
Field Details
-
LOAD
Deprecated.Called just after a world is loaded by a Minecraft server.This can be used to load world specific metadata or initialize a
PersistentStateon a server world. -
UNLOAD
Deprecated.Called before a world is unloaded by a Minecraft server.This typically occurs after a server has
started shutting down. Mods which allow dynamic world (un)registration should call this event so mods can let go of world handles when a world is removed.
-
ServerWorldLoadEventsinstead.