Expand description
Stuff related to entity indexes and keeping track of entities in the world.
Structs§
- Entity
Chunk Pos - The chunk position that an entity is currently in.
- Entity
IdIndex - An index of Minecraft entity IDs to Azalea ECS entities. This is a
Component
so local players can keep track of entity IDs independently from the instance. - Entity
Uuid Index
Functions§
- add_
entity_ to_ indexes - insert_
entity_ chunk_ position - Insert new entities into
Instance::entities_by_chunk
. - remove_
despawned_ entities_ from_ indexes - Despawn entities that aren’t being loaded by anything.
- update_
entity_ chunk_ positions - Update the chunk position indexes in
Instance::entities_by_chunk
.