Struct SimulatedMove
#[non_exhaustive]pub struct SimulatedMove {
pub position: [f64; 3],
pub velocity: [f64; 3],
pub on_ground: bool,
pub horizontal_collision: bool,
pub sprinting: bool,
}Expand description
Where a bot’s tick took it (native_simulate_player_move).
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.position: [f64; 3]Feet position after the simulated tick.
velocity: [f64; 3]The velocity after the tick, to pass back as the next tick’s velocity.
on_ground: boolWhether the resulting body rests on ground.
horizontal_collision: boolIt ran into a wall (Entity.horizontalCollision).
sprinting: boolWhether it sprints after the tick (a wall or sneaking stops it).
Trait Implementations§
§impl Clone for SimulatedMove
impl Clone for SimulatedMove
§fn clone(&self) -> SimulatedMove
fn clone(&self) -> SimulatedMove
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimulatedMove
§impl Debug for SimulatedMove
impl Debug for SimulatedMove
§impl Default for SimulatedMove
impl Default for SimulatedMove
§fn default() -> SimulatedMove
fn default() -> SimulatedMove
Returns the “default value” for a type. Read more
§impl PartialEq for SimulatedMove
impl PartialEq for SimulatedMove
impl StructuralPartialEq for SimulatedMove
Auto Trait Implementations§
impl Freeze for SimulatedMove
impl RefUnwindSafe for SimulatedMove
impl Send for SimulatedMove
impl Sync for SimulatedMove
impl Unpin for SimulatedMove
impl UnsafeUnpin for SimulatedMove
impl UnwindSafe for SimulatedMove
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