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

pub struct Location {
    pub biome: Option<String>,
    pub block: Option<Box<Block>>,
    pub dimension: Option<String>,
    pub feature: Option<String>,
    pub fluid: Option<Box<Fluid>>,
    pub light: Option<Ranged<isize>>,
    pub position: Option<Box<Vector3d<Ranged<isize>>>>,
    pub smokey: Option<bool>,
}
Expand description

Tags common to all locations.

Fields

biome: Option<String>

The biome the entity is currently in.

block: Option<Box<Block>>

The block at the location.

dimension: Option<String>

The dimension the entity is currently in.

feature: Option<String>

Name of a structure.

fluid: Option<Box<Fluid>>

The fluid at the location.

light: Option<Ranged<isize>>

The light Level of visible light. Calculated using: max(sky - darkening, block).

position: Option<Box<Vector3d<Ranged<isize>>>>

Block coordinate of this location.

smokey: Option<bool>

True if the block is closely above a campfire or soul campfire.

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.