yog_event/entity/
actions.rs1use crate::Point;
4use yog_core::EntityInfo;
5use yog_ids as ids;
6
7actions! {
8 Teleport { uuid: String, pos: Point } -> bool = ids::service_entity::TELEPORT, "YogEntityActions.entityTeleport";
10 TeleportToDim { uuid: String, dim: String, pos: Point } -> bool = ids::service_entity::TELEPORT_TO_DIM, "YogEntityActions.entityTeleportToDim";
12 Position { uuid: String } -> Option<Point> = ids::service_entity::POSITION, "YogQueries.entityPosition";
14 Rotation { uuid: String } -> Option<yog_core::Rotation> = ids::service_entity::ROTATION, "YogQueries.entityRotation";
16 Velocity { uuid: String } -> Option<Point> = ids::service_entity::VELOCITY, "YogQueries.entityVelocity";
18 SetVelocity { uuid: String, velocity: Point } -> bool = ids::service_entity::SET_VELOCITY, "YogEntityActions.entitySetVelocity";
20 AddVelocity { uuid: String, velocity: Point } -> bool = ids::service_entity::ADD_VELOCITY, "YogEntityActions.entityAddVelocity";
22 Health { uuid: String } -> Option<f64> = ids::service_entity::HEALTH, "YogEntityActions.entityHealth";
24 SetHealth { uuid: String, health: f64 } -> bool = ids::service_entity::SET_HEALTH, "YogEntityActions.entitySetHealth";
26 Kill { uuid: String } -> bool = ids::service_entity::KILL, "YogEntityActions.entityKill";
28 Spawn { entity_type: String, dim: String, pos: Point } -> Option<String> = ids::service_entity::SPAWN, "YogEntityActions.spawnEntity";
30 AddEffect { uuid: String, effect: String, duration: i32, amplifier: u8, particles: bool } -> bool = ids::service_entity::ADD_EFFECT, "YogEntityActions.entityAddEffect";
32 RemoveEffect { uuid: String, effect: String } -> bool = ids::service_entity::REMOVE_EFFECT, "YogEntityActions.entityRemoveEffect";
34 ClearEffects { uuid: String } -> bool = ids::service_entity::CLEAR_EFFECTS, "YogEntityActions.entityClearEffects";
36 Nbt { uuid: String } -> Option<String> = ids::service_entity::NBT, "YogEntityActions.entityGetNbt";
38 SetNbt { uuid: String, snbt: String } -> bool = ids::service_entity::SET_NBT, "YogEntityActions.entitySetNbt";
40 AttributeBase { uuid: String, attribute: String } -> Option<f64> = ids::service_entity::ATTRIBUTE_BASE, "YogEntityActions.entityAttributeGet";
42 SetAttributeBase { uuid: String, attribute: String, value: f64 } -> bool = ids::service_entity::SET_ATTRIBUTE_BASE, "YogEntityActions.entityAttributeSet";
44 AttributeValue { uuid: String, attribute: String } -> Option<f64> = ids::service_entity::ATTRIBUTE_VALUE, "YogEntityActions.entityAttributeValue";
46 Info { uuid: String } -> Option<EntityInfo> = ids::service_entity::INFO, "YogQueries.entityInfo";
48 Damage { uuid: String, amount: f32, damage_type: String, attacker: String } -> bool = ids::service_entity::DAMAGE, "YogEntityActions.entityDamage";
50 SetFireTicks { uuid: String, ticks: i32 } -> bool = ids::service_entity::SET_FIRE_TICKS, "YogEntityActions.entitySetFireTicks";
52 Vehicle { uuid: String } -> Option<String> = ids::service_entity::VEHICLE, "YogEntityActions.entityVehicle";
54 Passengers { uuid: String } -> Vec<String> = ids::service_entity::PASSENGERS, "YogQueries.entityPassengers";
56 Mount { rider: String, vehicle: String, force: bool } -> bool = ids::service_entity::MOUNT, "YogEntityActions.entityMount";
58 Dismount { uuid: String } -> bool = ids::service_entity::DISMOUNT, "YogEntityActions.entityDismount";
60 SetFallDistance { uuid: String, distance: f32 } -> bool = ids::service_entity::SET_FALL_DISTANCE, "YogEntityActions.entitySetFallDistance";
62}