Enum RecipeBookDisplay
pub enum RecipeBookDisplay {
Shaped {
width: u32,
height: u32,
ingredients: Vec<RecipeSlotDisplay>,
result: RecipeSlotDisplay,
station: RecipeSlotDisplay,
},
Shapeless {
ingredients: Vec<RecipeSlotDisplay>,
result: RecipeSlotDisplay,
station: RecipeSlotDisplay,
},
Furnace {
ingredient: RecipeSlotDisplay,
fuel: RecipeSlotDisplay,
result: RecipeSlotDisplay,
station: RecipeSlotDisplay,
duration: u32,
experience: f32,
},
Stonecutter {
input: RecipeSlotDisplay,
result: RecipeSlotDisplay,
station: RecipeSlotDisplay,
},
Smithing {
template: RecipeSlotDisplay,
base: RecipeSlotDisplay,
addition: RecipeSlotDisplay,
result: RecipeSlotDisplay,
station: RecipeSlotDisplay,
},
}Expand description
Vanilla’s five recipe display layouts, independent of the recipe’s JSON.
Variants§
Shaped
Shapeless
Furnace
Fields
§
ingredient: RecipeSlotDisplay§
fuel: RecipeSlotDisplay§
result: RecipeSlotDisplay§
station: RecipeSlotDisplayStonecutter
Smithing
Fields
§
template: RecipeSlotDisplay§
base: RecipeSlotDisplay§
addition: RecipeSlotDisplay§
result: RecipeSlotDisplay§
station: RecipeSlotDisplayTrait Implementations§
§impl Clone for RecipeBookDisplay
impl Clone for RecipeBookDisplay
§fn clone(&self) -> RecipeBookDisplay
fn clone(&self) -> RecipeBookDisplay
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RecipeBookDisplay
impl Debug for RecipeBookDisplay
§impl PartialEq for RecipeBookDisplay
impl PartialEq for RecipeBookDisplay
impl StructuralPartialEq for RecipeBookDisplay
Auto Trait Implementations§
impl Freeze for RecipeBookDisplay
impl RefUnwindSafe for RecipeBookDisplay
impl Send for RecipeBookDisplay
impl Sync for RecipeBookDisplay
impl Unpin for RecipeBookDisplay
impl UnsafeUnpin for RecipeBookDisplay
impl UnwindSafe for RecipeBookDisplay
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