Expand description
Common base functionality shared by all entities.
EntityBase contains the core fields and methods that every entity needs.
Entities embed this struct and delegate common Entity trait methods to it.
Re-exportsยง
pub use fire_freeze::EntityFireFreezeState;pub use movement::EntityGroundContact;pub use movement::EntityMovement;pub use movement::EntityMovementEmission;pub use movement::EntityMovementFlags;pub use movement::EntityMovementProgress;pub use movement::EntityVerticalMovementStateUpdate;pub use persistence::EntityBaseLoad;pub use persistence::EntityBaseSaveData;pub use relationships::PendingWorldChangeToken;
Modulesยง
- fire_
freeze ๐ - movement ๐
- persistence ๐
- relationships ๐
Structsยง
- Entity
Amethyst Step Sound - Sound parameters for vanilla amethyst step chimes.
- Entity
Base - Common fields and methods shared by all entities.
- Entity
Base State - Vanilla
Entitymovement state stored as one locked snapshot. - Entity
Movement ๐Trace - Entity
Physics ๐State Input - Entity
Piston ๐Movement - Per-tick piston movement accumulated by vanilla
Entity.limitPistonMovement. - Entity
Push ๐State
Constantsยง
- BOARDING_
COOLDOWN ๐ - DEFAULT_
MAX_ AIR_ SUPPLY - Default maximum air supply in ticks before an entity starts drowning.
- DEFAULT_
TICKS_ REQUIRED_ TO_ FREEZE - Default ticks of powder-snow exposure required before an entity starts taking freeze damage.
- FIRE_
IGNITE_ ๐TICKS - LAVA_
IGNITE_ ๐TICKS - MAX_
ENTITY_ TAGS - Maximum number of scoreboard tags a single entity may carry.
- MOVEMENT_
TRACE_ ๐LIMIT - MOVEMENT_
TRACE_ ๐POSITION_ EPSILON_ SQ - PISTON_
APPLIED_ ๐MOVEMENT_ EPSILON - PISTON_
MOVEMENT_ ๐LIMIT - PISTON_
ZERO_ ๐MOVEMENT_ EPSILON - STUCK_
SPEED_ ๐MULTIPLIER_ EPSILON
Functionsยง
- normalize_
rotation ๐ - require_
finite_ ๐position