Skip to main content

PlayersClientHost

Trait PlayersClientHost 

pub trait PlayersClientHost {
    // Provided method
    fn push_player(&mut self, kick: [f32; 3]) { ... }
}
Expand description

The client host’s methods of the players area, implemented by the game and reached through crate::ClientHost.

Provided Methods§

fn push_player(&mut self, kick: [f32; 3])

Side: client. For a client mod: a push added to the local player’s velocity, in blocks a tick, as an explosion’s knockback is (the window’s player moves itself, as vanilla’s client does). Each component is clamped to -4..4; a spectator, or a value that is not a number, is left alone.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§