pub struct CookingRecipe {
pub id: String,
pub ingredient: Ingredient,
pub result: ItemStack,
pub cook_time: u32,
pub experience: f32,
pub kind: CookingKind,
}Expand description
A furnace / smoker / blast furnace / campfire recipe.
Fields§
§id: StringUnique recipe identifier.
ingredient: IngredientThe input ingredient.
result: ItemStackThe result item.
cook_time: u32Base cooking time in ticks (e.g. 200 for furnace).
experience: f32Experience granted when the item is removed.
kind: CookingKindWhich cooking block this applies to.
Trait Implementations§
Source§impl Clone for CookingRecipe
impl Clone for CookingRecipe
Source§fn clone(&self) -> CookingRecipe
fn clone(&self) -> CookingRecipe
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CookingRecipe
impl RefUnwindSafe for CookingRecipe
impl Send for CookingRecipe
impl Sync for CookingRecipe
impl Unpin for CookingRecipe
impl UnsafeUnpin for CookingRecipe
impl UnwindSafe for CookingRecipe
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more