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.