World
Package: com.hypixel.hytale.server.core.universe.world
public class World extends TickingThread implements Executor, ExecutorMetricsRegistry.ExecutorMetric, ChunkAccessor<WorldChunk>, IWorldChunks, IMessageReceiverCentral 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.
Constants
Section titled “Constants”| Field | Type | Value | Description |
|---|---|---|---|
SAVE_INTERVAL | float | 10.0F | World save interval in seconds. |
DEFAULT | String | "default" | Default world name. |
Key Fields
Section titled “Key Fields”| Field | Type | Description |
|---|---|---|
name | String | World name (thread name is "WorldThread - " + name). |
savePath | Path | Directory for persistent world data. |
worldConfig | WorldConfig | Configuration including seed, spawn, world gen, game mode, etc. |
chunkStore | ChunkStore | Chunk-level ECS storage manager. |
entityStore | EntityStore | Entity-level ECS storage manager. |
chunkLighting | ChunkLightingManager | Manages chunk light propagation. |
worldMapManager | WorldMapManager | Manages world map images and markers. |
eventRegistry | EventRegistry | World-scoped event bus. |
notificationHandler | WorldNotificationHandler | Sends block change notifications to players. |
players | Map<UUID, PlayerRef> | Connected players indexed by UUID. |
features | Map<ClientFeature, Boolean> | Client feature toggles. |
taskQueue | Deque<Runnable> | Thread-safe queue for tasks to execute on the world thread. |
Key Methods
Section titled “Key Methods”| Method | Return Type | Description |
|---|---|---|
getName() | String | Returns the world name. |
getWorldConfig() | WorldConfig | Returns the world configuration. |
getEntityStore() | EntityStore | Returns the entity store. |
getChunkStore() | ChunkStore | Returns the chunk store. |
getPlayerRefs() | Collection<PlayerRef> | Returns an unmodifiable view of connected player refs. |
getWorldMapManager() | WorldMapManager | Returns the world map manager. |
getNotificationHandler() | WorldNotificationHandler | Returns the block notification handler. |
getEventRegistry() | EventRegistry | Returns the world event registry. |
execute(Runnable) | void | Submits a task to the world thread queue. |
See Also
Section titled “See Also”
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.