pub struct ShapedRecipe {
pub id: String,
pub output: String,
pub count: u32,
/* private fields */
}Expand description
A shaped crafting recipe (3×3 grid with a pattern and key mapping).
ShapedRecipe::new("yog:ruby_sword", "yog:ruby_shard", 1)
.row("R ").row("RS ").row(" S ")
.key('R', "yog:ruby_shard").key('S', "minecraft:stick");Fields§
§id: String§output: String§count: u32Implementations§
Trait Implementations§
Source§impl Clone for ShapedRecipe
impl Clone for ShapedRecipe
Source§fn clone(&self) -> ShapedRecipe
fn clone(&self) -> ShapedRecipe
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 moreAuto Trait Implementations§
impl Freeze for ShapedRecipe
impl RefUnwindSafe for ShapedRecipe
impl Send for ShapedRecipe
impl Sync for ShapedRecipe
impl Unpin for ShapedRecipe
impl UnsafeUnpin for ShapedRecipe
impl UnwindSafe for ShapedRecipe
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