Skip to main content

Module player

Module player 

Source
Expand description

The local player (client): where it is, how it fares, what it holds. None (or empty) on a dedicated server and without a player.

ⓘ
use yog_api::client::player;
if let Some(me) = player::state() {
    yog_api::info!("at {} {} {}", me.x, me.y, me.z);
}

Structs§

Stack
A stack in the player’s inventory.
State
The local player: where it is, where it looks, how it moves and fares.

Functions§

inventory
The player’s inventory, stacks only.
state
Where the local player is and how it fares; None without one.