pub enum Recipe {
Show 22 variants
CraftingShapeless(RecipeCraftingShapelessSpec),
CraftingShaped(RecipeCraftingShapedSpec),
CraftingArmorDye,
CraftingBookCloning,
CraftingMapCloning,
CraftingMapExtending,
CraftingFireworkRocket,
CraftingFireworkStar,
CraftingFireworkStarFade,
CraftingRepairItem,
CraftingTippedArrow,
CraftingBannerDuplicate,
CraftingBannerAddPattern,
CraftingShieldDecoration,
CraftingShulkerBoxColoring,
CraftingSuspiciousStew,
Smelting(RecipeSmeltingSpec),
Blasting(RecipeSmeltingSpec),
Smoking(RecipeSmeltingSpec),
CampfireCooking(RecipeSmeltingSpec),
StoneCutting(RecipeStonecuttingSpec),
Smithing(RecipeSmithingSpec),
}
Variants§
CraftingShapeless(RecipeCraftingShapelessSpec)
CraftingShaped(RecipeCraftingShapedSpec)
CraftingArmorDye
CraftingBookCloning
CraftingMapCloning
CraftingMapExtending
CraftingFireworkRocket
CraftingFireworkStar
CraftingFireworkStarFade
CraftingRepairItem
CraftingTippedArrow
CraftingBannerDuplicate
CraftingBannerAddPattern
CraftingShieldDecoration
CraftingShulkerBoxColoring
CraftingSuspiciousStew
Smelting(RecipeSmeltingSpec)
Blasting(RecipeSmeltingSpec)
Smoking(RecipeSmeltingSpec)
CampfireCooking(RecipeSmeltingSpec)
StoneCutting(RecipeStonecuttingSpec)
Smithing(RecipeSmithingSpec)
Implementations§
Source§impl Recipe
impl Recipe
pub const fn variant_count() -> usize
pub fn name(&self) -> &str
pub fn id(&self) -> String
pub fn deserialize_with_id<'a>( name: &str, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Deserialize for Recipe
impl Deserialize for Recipe
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl Serialize for Recipe
impl Serialize for Recipe
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for Recipe
Auto Trait Implementations§
impl Freeze for Recipe
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnwindSafe for Recipe
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