The heartbeat used for announcing the server to a server list. By default, I load BaseHeartbeat asynchronously if serverConfiguration.postToMainServer is true.
The currently loaded levels. Indexed by BaseLevel.name.
Use BaseLevel.loadIntoUniverse or BaseLevel.teleportPlayer to load levels into this map.
A classicborne-server-protocol Server instance.
StaticdefaultStaticheartbeatThe BaseHeartbeat class used for announcing my presence. This is promise as the constructor asynchronously imports the module for the class and assigns it to BaseUniverse.heartbeat.
StaticplayerThe BasePlayer class to instantiate when clients connect to the server.
Optionalevent: "playerAdded" | "playerRemoved"Unregisters the player from the universe, emitting a playerRemoved event. This is called on player disconnect or by BasePlayer.client.disconnect.
I'm a Minecraft Classic game server, responsible for managing the server lifecycle, connected players and loaded levels.
I coordinate the following core objects:
Example: Creating a custom universe by extending BaseUniverse.