Module 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”.

Modules§

bvh
chunk
entity
message

Structs§

ChunkLayer
A Component containing the chunks and dimension information of a Minecraft world.
EntityLayer
A Component containing Minecraft entities.
LayerBundle
Convenience Bundle for spawning a layer entity with both ChunkLayer and EntityLayer components.
LayerPlugin
UpdateLayersPostClientSet
When layers are cleared and messages from this tick are lost. Systems that read layer messages should run before this.
UpdateLayersPreClientSet
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§

Layer
Common functionality for layers. Notable implementors are ChunkLayer and EntityLayer.