Struct mcpi_api::Player [−][src]
pub struct Player<'a> { /* fields omitted */ }
Struct containing functions and a Connection struct.
Implementations
impl Player<'_>
[src]
impl Player<'_>
[src]Panics
All functions implemented on the Player struct might panic if the API is not running anymore or packages fail to send. This might change in a 0.2.0 version of this crate
pub fn get_pos(&mut self) -> Vec3
[src]
Get the position of the main player
pub fn set_pos(&mut self, pos: &Vec3)
[src]
Set the position of the main player
pub fn get_tile_pos(&mut self) -> TileVec3
[src]
Get the tile position of the main player
pub fn set_tile_pos(&mut self, pos: &TileVec3)
[src]
Set the tile position of the main player
pub fn setting(&mut self, setting: &str, status: bool)
[src]
Set a setting for the main player Available settings: “autojump”
Auto Trait Implementations
impl<'a> RefUnwindSafe for Player<'a>
impl<'a> RefUnwindSafe for Player<'a>
impl<'a> !UnwindSafe for Player<'a>
impl<'a> !UnwindSafe for Player<'a>