Module valence_server::layer

source ·
Expand description

Defines chunk layers and entity layers. Chunk layers contain the chunks and dimension data of a world, while entity layers contain all the Minecraft entities.

These two together are analogous to Minecraft “levels” or “worlds”.

Re-exports§

Modules§

Structs§

  • Convenience [Bundle] for spawning a layer entity with both ChunkLayer and EntityLayer components.
  • When layers are cleared and messages from this tick are lost. Systems that read layer messages should run before this.
  • When entity and chunk changes are written to layers. Systems that modify chunks and entities should run before this. Systems that need to read layer messages should run after this.

Traits§