Struct minecraft_json::minecraft::data::conditions::Statistic [−][src]
Expand description
A statistic. Note that unlike when adding scoreboard objectives, the base (for example,
minecraft:custom) and the statistic (for example, minecraft:sneak_time) are split and
use proper namespaces instead of the dot-notation (minecraft.custom:minecraft.sneak_time).
Fields
type: StringThe statistic base. Possible values are minecraft:custom, minecraft:crafted,
minecraft:used, minecraft:broken, minecraft:mined, minecraft:killed,
minecraft:picked_up, minecraft:dropped and minecraft:killed_by.
stat: StringThe statistic ID. Mostly mimics the criteria used for defining scoreboard objectives.
value: Ranged<isize>The value of the statistic.
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