Hytale-documentation.github.io

World & Chunk Management

The world system in Hytale is hierarchical and heavily integrated with the ECS.

Hierarchy

  1. Universe (com.hypixel.hytale.server.core.universe.Universe)
    • The top-level container.
    • Manages multiple World instances.
    • Handles global player connections and routing.
  2. World (com.hypixel.hytale.server.core.universe.world.World)
    • Represents a single dimension or instance.
    • Contains two ECS stores: EntityStore (Game Objects) and ChunkStore (Map Data).
    • Manages the game loop for that specific dimension.
  3. ChunkStore (com.hypixel.hytale.server.core.universe.world.storage.ChunkStore)
    • A specialized ECS provider for identifying and loading chunks.
    • Integrates with IChunkLoader (Disk IO) and IWorldGen (Generation).

Chunk System

Chunks in Hytale are Entities within the ChunkStore.

World Generation

Threading Model