Struct minecraft_json::minecraft::data::conditions::Item [−][src]
pub struct Item { pub count: Option<Ranged<isize>>, pub durability: Option<Ranged<isize>>, pub enchantments: Vec<Enchantment>, pub stored_enchantments: Vec<Enchantment>, pub items: Vec<String>, pub nbt: Option<String>, pub potion: Option<String>, pub tag: Option<String>, }
Expand description
Tags common to all items.
Fields
count: Option<Ranged<isize>>
Amount of the item.
durability: Option<Ranged<isize>>
The durability of the item.
enchantments: Vec<Enchantment>
List of enchantments.
stored_enchantments: Vec<Enchantment>
List of stored enchantments.
items: Vec<String>
A list of item IDs.
nbt: Option<String>
An NBT string.
potion: Option<String>
A brewed potion ID.
tag: Option<String>
An item data pack tag.
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