Struct mcpi_api::Player[][src]

pub struct Player<'a> { /* fields omitted */ }

Struct containing functions and a Connection struct.

Implementations

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> Send for Player<'a>

impl<'a> Sync for Player<'a>

impl<'a> Unpin for Player<'a>

impl<'a> !UnwindSafe for Player<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.