Replaceable systems

Every core system that matters for speed is a slot: lighting, world storage, world generation, entity tracking, compression, networking, the task scheduler. A slot holds exactly one implementation, chosen at start:

  • the built-in one (default), or
  • one from a plugin (today for world generation), or one compiled into your own build.

The built-in version goes through the same interface as a replacement, so a replacement gets exactly what the default gets. After startup the choice is fixed, and calls go straight to the chosen implementation. The log shows which one each slot uses (Slot chunk-storage: built-in, or plugin <id>).

Batches keep it cheap

The server calls a system once per batch of work (for example "all entities of this world, this tick"), not once per block or entity. So a replaceable system costs almost nothing extra.

Status

Slot Status
Task scheduler Built
Entity tracker Built
Login check (account authentication) Built, in the network layer
World storage (chunk-storage) Built: Vanillite's own format and Anvil region files (World storage)
World generation (chunk-generator) Built: Vanilla's generator (with structures), flat, or one from a plugin
Lighting (light-engine) Built
Compression and others Planned, each with its system

See also: World generation, Chunks and networking.

Next: Plugins.