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 moreSource§impl Debug for ShapedRecipe
impl Debug for ShapedRecipe
Source§impl<'de> Deserialize<'de> for ShapedRecipe
impl<'de> Deserialize<'de> for ShapedRecipe
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShapedRecipe, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShapedRecipe, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ShapedRecipe
impl Serialize for ShapedRecipe
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto 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