HandRecipe

Trait HandRecipe 

Source
pub trait HandRecipe:
    Debug
    + Sealed
    + RecipeEx {
    // Provided method
    fn craft(tick: &mut Tick, inputs: Self::InputBundle) -> Self::OutputBundle { ... }
}
Expand description

A recipe that can be hand-crafted by the player.

Provided Methods§

Source

fn craft(tick: &mut Tick, inputs: Self::InputBundle) -> Self::OutputBundle

Crafts the recipe by consuming the input bundle and producing the output bundle. Advances the provided Tick by the recipe’s time.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§