Struct minecraft_json::minecraft::data::conditions::Player[][src]

pub struct Player {
    pub looking_at: Option<Box<Entity>>,
    pub advancements: BTreeMap<String, AdvancementStatus>,
    pub gamemode: Option<GameMode>,
    pub level: Option<Ranged<isize>>,
    pub recipes: BTreeMap<String, bool>,
    pub stats: Vec<Statistic>,
}
Expand description

Player properties.

Fields

looking_at: Option<Box<Entity>>

The entity that the player is looking at, as long as it is visible and within a radius of 100 blocks. Visibility is defined through the line from the player’s eyes to the entity’s eyes, rather than the direction that the player is looking in.

advancements: BTreeMap<String, AdvancementStatus>

A map of advancements to check.

Item: An advancement ID.

gamemode: Option<GameMode>

The game mode of the player.

level: Option<Ranged<isize>>

The experience level of the player.

recipes: BTreeMap<String, bool>

A map of recipes to check.

Item: A recipe ID. True if the recipe is known to the player.

stats: Vec<Statistic>

List of Statistics to match.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.