Skip to content

PrepareUniverseEvent

DEPRECATED — This event is deprecated.

Package: com.hypixel.hytale.server.core.event.events Implements: 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.

FieldTypeAccessorMutableNullable
worldConfigProviderWorldConfigProvidergetWorldConfigProvider()YesNo
  • worldConfigProvider — The world configuration provider used to configure worlds in the universe. Mutable via setWorldConfigProvider(WorldConfigProvider).
  • Universe.init (line 255) via eventBus dispatch — Dispatched during universe initialization with the world config provider.
getEventRegistry().register(PrepareUniverseEvent.class, event -> {
WorldConfigProvider provider = event.getWorldConfigProvider();
// Inspect or replace the world config provider before worlds are created
});