Expand description
Component types and marker trait for the Entity Component System.
These types define the data model for all game entities. They live
in basalt-api so that plugin crates can reference them through
the basalt-api facade without depending on the ECS storage engine.
Structs§
- Block
Position - Absolute block coordinates (integers).
- Bounding
Box - AABB hitbox dimensions.
- Chunk
Position - Chunk coordinates (X and Z only, no Y).
- Crafting
Grid - Tracks the contents of a player’s crafting grid.
- Dropped
Item - A dropped item on the ground.
- Entity
Kind - Minecraft entity type ID.
- Health
- Hit points for damageable entities.
- Inventory
- Player inventory — 36 slots (27 main + 9 hotbar).
- Known
Recipes - Set of recipes a player has unlocked, plus the protocol’s
numeric
display_idmapping. - Lifetime
- Auto-despawn countdown.
- Open
Container - Tracks that a player currently has a non-inventory window open.
- Pickup
Delay - Pickup delay before a dropped item can be collected.
- Player
Ref - Links an entity to a player connection.
- Position
- World position of an entity.
- Rotation
- Facing direction of an entity.
- Sneaking
- Marker component for sneaking state.
- Velocity
- Movement vector per tick.
- Virtual
Container Slots - Holds the slot contents of a virtual container window.
Enums§
- Phase
- Execution phase within a game loop tick.
Traits§
- Component
- Marker trait for component types stored in the ECS.
Type Aliases§
- Entity
Id - A unique entity identifier.