Struct minecraft_json::minecraft::data::advancement::Rewards [−][src]
pub struct Rewards {
pub recipes: Vec<String>,
pub loot: Vec<String>,
pub experience: isize,
pub function: Option<String>,
}Expand description
An object representing the rewards provided when an Advancement is obtained.
Fields
recipes: Vec<String>A list of recipes to unlock.
Item: A namespaced ID for a recipe.
loot: Vec<String>A list of loot tables to give to the player.
Item: A namespaced ID for a loot table.
experience: isizeAn amount of experience.
function: Option<String>A function to run. Function tags are not allowed.
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