Skip to content

World

Package: com.hypixel.hytale.server.core.universe.world

public class World extends TickingThread implements Executor, ExecutorMetricsRegistry.ExecutorMetric, ChunkAccessor<WorldChunk>, IWorldChunks, IMessageReceiver

Central class representing a game world. Runs on its own TickingThread, owns a ChunkStore and EntityStore, manages player connections, chunk lighting, world map, event dispatching, and world lifecycle (start, tick, pause, save, shutdown). Worlds are named and persisted to a save directory with a WorldConfig. Client features (health bars, combat text, armor visibility) are configured at construction time from gameplay config.

FieldTypeValueDescription
SAVE_INTERVALfloat10.0FWorld save interval in seconds.
DEFAULTString"default"Default world name.
FieldTypeDescription
nameStringWorld name (thread name is "WorldThread - " + name).
savePathPathDirectory for persistent world data.
worldConfigWorldConfigConfiguration including seed, spawn, world gen, game mode, etc.
chunkStoreChunkStoreChunk-level ECS storage manager.
entityStoreEntityStoreEntity-level ECS storage manager.
chunkLightingChunkLightingManagerManages chunk light propagation.
worldMapManagerWorldMapManagerManages world map images and markers.
eventRegistryEventRegistryWorld-scoped event bus.
notificationHandlerWorldNotificationHandlerSends block change notifications to players.
playersMap<UUID, PlayerRef>Connected players indexed by UUID.
featuresMap<ClientFeature, Boolean>Client feature toggles.
taskQueueDeque<Runnable>Thread-safe queue for tasks to execute on the world thread.
MethodReturn TypeDescription
getName()StringReturns the world name.
getWorldConfig()WorldConfigReturns the world configuration.
getEntityStore()EntityStoreReturns the entity store.
getChunkStore()ChunkStoreReturns the chunk store.
getPlayerRefs()Collection<PlayerRef>Returns an unmodifiable view of connected player refs.
getWorldMapManager()WorldMapManagerReturns the world map manager.
getNotificationHandler()WorldNotificationHandlerReturns the block notification handler.
getEventRegistry()EventRegistryReturns the world event registry.
execute(Runnable)voidSubmits a task to the world thread queue.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.