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: isize

An amount of experience.

function: Option<String>

A function to run. Function tags are not allowed.

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.