Struct minecraft_json::minecraft::data::conditions::EntityFlags [−][src]
pub struct EntityFlags { pub is_on_fire: Option<bool>, pub is_sneaking: Option<bool>, pub is_sprinting: Option<bool>, pub is_swimming: Option<bool>, pub is_baby: Option<bool>, }
Expand description
Predicate Flags to be checked for an entity.
Fields
is_on_fire: Option<bool>
Test whether the entity is or is not on fire.
is_sneaking: Option<bool>
Test whether the entity is or is not sneaking.
is_sprinting: Option<bool>
Test whether the entity is or is not sprinting.
is_swimming: Option<bool>
Test whether the entity is or is not swimming.
is_baby: Option<bool>
Test whether the entity is or is not a baby variant.
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.