#[repr(u32)]pub enum RecipeSerializer {
Show 22 variants
CraftingShaped = 0,
CraftingShapeless = 1,
CraftingSpecialArmordye = 2,
CraftingSpecialBookcloning = 3,
CraftingSpecialMapcloning = 4,
CraftingSpecialMapextending = 5,
CraftingSpecialFireworkRocket = 6,
CraftingSpecialFireworkStar = 7,
CraftingSpecialFireworkStarFade = 8,
CraftingSpecialTippedarrow = 9,
CraftingSpecialBannerduplicate = 10,
CraftingSpecialShielddecoration = 11,
CraftingTransmute = 12,
CraftingSpecialRepairitem = 13,
Smelting = 14,
Blasting = 15,
Smoking = 16,
CampfireCooking = 17,
Stonecutting = 18,
SmithingTransform = 19,
SmithingTrim = 20,
CraftingDecoratedPot = 21,
}
Variants§
CraftingShaped = 0
CraftingShapeless = 1
CraftingSpecialArmordye = 2
CraftingSpecialBookcloning = 3
CraftingSpecialMapcloning = 4
CraftingSpecialMapextending = 5
CraftingSpecialFireworkRocket = 6
CraftingSpecialFireworkStar = 7
CraftingSpecialFireworkStarFade = 8
CraftingSpecialTippedarrow = 9
CraftingSpecialBannerduplicate = 10
CraftingSpecialShielddecoration = 11
CraftingTransmute = 12
CraftingSpecialRepairitem = 13
Smelting = 14
Blasting = 15
Smoking = 16
CampfireCooking = 17
Stonecutting = 18
SmithingTransform = 19
SmithingTrim = 20
CraftingDecoratedPot = 21
Implementations§
Source§impl RecipeSerializer
impl RecipeSerializer
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl RecipeSerializer
impl RecipeSerializer
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl Clone for RecipeSerializer
impl Clone for RecipeSerializer
Source§fn clone(&self) -> RecipeSerializer
fn clone(&self) -> RecipeSerializer
Returns a copy 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 moreSource§impl Debug for RecipeSerializer
impl Debug for RecipeSerializer
Source§impl<'de> Deserialize<'de> for RecipeSerializer
impl<'de> Deserialize<'de> for RecipeSerializer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RecipeSerializer
impl Display for RecipeSerializer
Source§impl FromNbtTag for RecipeSerializer
impl FromNbtTag for RecipeSerializer
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for RecipeSerializer
impl FromStr for RecipeSerializer
Source§impl Hash for RecipeSerializer
impl Hash for RecipeSerializer
Source§impl McBufReadable for RecipeSerializer
impl McBufReadable for RecipeSerializer
Source§impl McBufWritable for RecipeSerializer
impl McBufWritable for RecipeSerializer
Source§impl PartialEq for RecipeSerializer
impl PartialEq for RecipeSerializer
Source§impl Registry for RecipeSerializer
impl Registry for RecipeSerializer
Source§impl Serialize for RecipeSerializer
impl Serialize for RecipeSerializer
Source§impl ToNbtTag for RecipeSerializer
impl ToNbtTag for RecipeSerializer
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for RecipeSerializer
impl TryFrom<u32> for RecipeSerializer
impl Copy for RecipeSerializer
impl Eq for RecipeSerializer
impl StructuralPartialEq for RecipeSerializer
Auto Trait Implementations§
impl Freeze for RecipeSerializer
impl RefUnwindSafe for RecipeSerializer
impl Send for RecipeSerializer
impl Sync for RecipeSerializer
impl Unpin for RecipeSerializer
impl UnwindSafe for RecipeSerializer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)