pub enum Event {
Spawned(i32),
Removed {
id: i32,
ty: EntityType,
},
Moved(i32),
Velocity(i32),
Status {
id: i32,
status: i8,
},
Metadata(i32),
Equipment(i32),
Effects(i32),
Mounted {
id: i32,
vehicle: Option<i32>,
},
Collected {
collected: i32,
collector: i32,
},
PlayerList,
}Expand description
A change notification (only queued with Config::events).
Variants§
Spawned(i32)
A new entity (or a replacement for an existing id).
Removed
An entity was removed (destroy, pickup, world change).
Moved(i32)
Server position or rotation changed (movement, teleport).
Velocity(i32)
Velocity changed.
Status
entity_status (e.g. 2 hurt, 3 death).
Metadata(i32)
Metadata changed.
Equipment(i32)
Equipment changed.
Effects(i32)
Effects changed.
Mounted
Riding changed: id now rides vehicle.
Collected
An item / orb / arrow was picked up (collector may be the bot).
PlayerList
The tab list changed.
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more