#[non_exhaustive]pub struct Ride {
pub entity_id: i32,
pub name: &'static str,
pub pos: Vec3,
pub yaw: f32,
pub pitch: f32,
pub on_ground: bool,
pub controlled: bool,
pub seat: Option<usize>,
}Expand description
What the bot rides (Bot::vehicle).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity_id: i32The vehicle’s entity id.
name: &'static strIts type’s registry / minecraft-data name, as crate::EntityInfo::name has it
("horse", "pig", "camel", "oak_boat"; 1.8.9 "EntityHorse", "Pig",
"Boat", "MinecartRideable"), "" when the entity is not tracked.
pos: Vec3Position (the client’s own for a vehicle it moves, else where the client has it).
yaw: f32Yaw.
pitch: f32Pitch.
on_ground: boolOn the ground.
controlled: boolThe client moves it from the bot’s keys (a saddled horse, a camel, a pig or strider with its stick in a hand on 1.12.2+, a harnessed happy ghast, a saddled tame nautilus, a boat) rather than the server (1.8.9 living mounts, a minecart, a llama, a pig without the stick).
seat: Option<usize>The bot’s seat: its index in the vehicle’s passenger list (0 steers), None when the
list is not known.
Trait Implementations§
impl Copy for Ride
impl StructuralPartialEq for Ride
Auto Trait Implementations§
impl Forget for Ride
impl Freeze for Ride
impl Move for Ride
impl RefUnwindSafe for Ride
impl Send for Ride
impl Sync for Ride
impl Unpin for Ride
impl UnsafeUnpin for Ridewhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Ridewhere
&'static str: UnwindSafe,
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