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

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.