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 Statistic
s to match.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more