Expand description
The bus’s domains: each one’s actions as functions
(world::get_block(dim, pos), entity::position(uuid),
player::give_item(name, item, count)) beside its events.
What happens to entities.
Modules§
Structs§
- AddEffect
- Gives the entity a mob effect.
- AddVelocity
- Adds to the entity’s velocity.
- Attribute
Base - An attribute’s base value.
- Attribute
Value - An attribute’s value with its modifiers.
- Clear
Effects - Takes every mob effect off the entity.
- Damage
- Hurts the entity.
- Data
- What the entity keeps under
key. - Data
Value - Bytes a mod keeps on an entity under a key.
- Dismount
- Gets the entity off what it rides.
- Hanging
- How a hanging entity hangs: on which side, how big, and the item it was
placed from (what it drops) — its entity data
yog:hanging(yog_ids::yog::HANGING), which the host keeps up to date. - Health
- A living entity’s health.
- Info
- The entity’s state.
- Kill
- Kills the entity.
- Mount
- Makes
riderridevehicle. - Nbt
- The entity’s data as SNBT.
- Passengers
- The uuids riding the entity.
- Position
- The entity’s position.
- Remove
Effect - Takes a mob effect off the entity.
- Rotation
- Which way the entity faces.
- SetAttribute
Base - Sets an attribute’s base value.
- SetData
- Keeps
valueunderkey(Noneforgets it), synced to the clients that see the entity;persistsaves it with the entity. - SetDimensions
- The entity’s size,
[width, height, eye height]—None: vanilla’s — on the server and on every client that sees it. - SetFall
Distance - Sets how far the entity has fallen.
- SetFire
Ticks - Sets the entity on fire for
ticks. - SetHealth
- Sets a living entity’s health.
- SetNbt
- Merges
snbtinto the entity’s data. - SetVelocity
- Sets the entity’s velocity.
- Spawn
- Spawns an entity of
entity_type; its uuid. - Teleport
- Moves the entity in its dimension.
- Teleport
ToDim - Moves the entity to
posindim. - Vehicle
- The uuid of what the entity rides.
- Velocity
- The entity’s velocity.
Constants§
- VANILLA_
SIZE - What the host reads as “vanilla’s size again”: a negative width.
Functions§
- add_
effect - Gives the entity a mob effect.
- add_
velocity - Adds to the entity’s velocity.
- attribute_
base - An attribute’s base value.
- attribute_
value - An attribute’s value with its modifiers.
- clear_
effects - Takes every mob effect off the entity.
- damage
- Hurts the entity.
- dismount
- Gets the entity off what it rides.
- health
- A living entity’s health.
- info
- The entity’s state.
- kill
- Kills the entity.
- mount
- Makes
riderridevehicle. - nbt
- The entity’s data as SNBT.
- passengers
- The uuids riding the entity.
- position
- The entity’s position.
- remove_
effect - Takes a mob effect off the entity.
- rotation
- Which way the entity faces.
- set_
attribute_ base - Sets an attribute’s base value.
- set_
fall_ distance - Sets how far the entity has fallen.
- set_
fire_ ticks - Sets the entity on fire for
ticks. - set_
health - Sets a living entity’s health.
- set_nbt
- Merges
snbtinto the entity’s data. - set_
velocity - Sets the entity’s velocity.
- spawn
- Spawns an entity of
entity_type; its uuid. - teleport
- Moves the entity in its dimension.
- teleport_
to_ dim - Moves the entity to
posindim. - vehicle
- The uuid of what the entity rides.
- velocity
- The entity’s velocity.