Struct minecraft_json::minecraft::data::conditions::Entity [−][src]
pub struct Entity {}Show fields
pub distance: Option<Box<Distance>>, pub effects: BTreeMap<String, Effect>, pub equipment: Option<Equipment>, pub flags: Option<EntityFlags>, pub lightning_bolt: Option<Box<LightningBolt>>, pub location: Option<Box<Location>>, pub nbt: Option<String>, pub passenger: Option<Box<Entity>>, pub player: Option<Box<Player>>, pub stepping_on: Option<Box<Location>>, pub team: Option<String>, pub type: Option<String>, pub targeted_entity: Option<Box<Entity>>, pub vehicle: Option<Box<Entity>>,
Expand description
Tags common to all entities.
Fields
distance: Option<Box<Distance>>
The player that would get the advancement. May also be a list of predicates that must pass in order for the trigger to activate.
effects: BTreeMap<String, Effect>
A list of status effects.
Item: A status effect with the key name being the status effect name.
equipment: Option<Equipment>
Equipments on this entity.
flags: Option<EntityFlags>
Predicate Flags to be checked.
lightning_bolt: Option<Box<LightningBolt>>
Lightning bolt properties to be checked. Fails when entity is not a lightning bolt.
location: Option<Box<Location>>
Location of this entity.
nbt: Option<String>
An NBT string.
passenger: Option<Box<Entity>>
The entity directly riding this entity.
player: Option<Box<Player>>
Player properties to be checked. Fails when entity is not a player.
stepping_on: Option<Box<Location>>
Location predicate for the block the entity is standing on.
team: Option<String>
The team the entity belongs to.
type: Option<String>
An entity ID.
targeted_entity: Option<Box<Entity>>
The entity which this entity is targeting for attacks.
vehicle: Option<Box<Entity>>
The vehicle that the entity is riding on.
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