PrepareUniverseEvent
DEPRECATED — This event is deprecated.
Package:
com.hypixel.hytale.server.core.event.eventsImplements:IEvent<Void>Cancellable: No
Standard event dispatched during universe initialization. Provides listeners with access to the world configuration provider. The worldConfigProvider field is mutable, allowing listeners to replace the provider entirely before worlds are created.
Fields / Accessors
Section titled “Fields / Accessors”| Field | Type | Accessor | Mutable | Nullable |
|---|---|---|---|---|
worldConfigProvider | WorldConfigProvider | getWorldConfigProvider() | Yes | No |
- worldConfigProvider — The world configuration provider used to configure worlds in the universe. Mutable via
setWorldConfigProvider(WorldConfigProvider).
Fired By
Section titled “Fired By”Universe.init(line 255) viaeventBus dispatch— Dispatched during universe initialization with the world config provider.
Listening
Section titled “Listening”getEventRegistry().register(PrepareUniverseEvent.class, event -> { WorldConfigProvider provider = event.getWorldConfigProvider(); // Inspect or replace the world config provider before worlds are created});Related Events
Section titled “Related Events”BootEvent— Fires earlier in the server lifecycle, before universes are initialized.ShutdownEvent— Fires during server shutdown.AllWorldsLoadedEvent— Fires after all worlds have completed loading.