#[repr(u32)]pub enum RecipeKind {
Crafting = 0,
Smelting = 1,
Blasting = 2,
Smoking = 3,
CampfireCooking = 4,
Stonecutting = 5,
Smithing = 6,
}
Variants§
Crafting = 0
Smelting = 1
Blasting = 2
Smoking = 3
CampfireCooking = 4
Stonecutting = 5
Smithing = 6
Implementations§
Source§impl RecipeKind
impl RecipeKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl RecipeKind
impl RecipeKind
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 RecipeKind
impl Clone for RecipeKind
Source§fn clone(&self) -> RecipeKind
fn clone(&self) -> RecipeKind
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 RecipeKind
impl Debug for RecipeKind
Source§impl<'de> Deserialize<'de> for RecipeKind
impl<'de> Deserialize<'de> for RecipeKind
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 RecipeKind
impl Display for RecipeKind
Source§impl FromNbtTag for RecipeKind
impl FromNbtTag for RecipeKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for RecipeKind
impl FromStr for RecipeKind
Source§impl Hash for RecipeKind
impl Hash for RecipeKind
Source§impl McBufReadable for RecipeKind
impl McBufReadable for RecipeKind
Source§impl McBufWritable for RecipeKind
impl McBufWritable for RecipeKind
Source§impl PartialEq for RecipeKind
impl PartialEq for RecipeKind
Source§impl Registry for RecipeKind
impl Registry for RecipeKind
Source§impl Serialize for RecipeKind
impl Serialize for RecipeKind
Source§impl ToNbtTag for RecipeKind
impl ToNbtTag for RecipeKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for RecipeKind
impl TryFrom<u32> for RecipeKind
impl Copy for RecipeKind
impl Eq for RecipeKind
impl StructuralPartialEq for RecipeKind
Auto Trait Implementations§
impl Freeze for RecipeKind
impl RefUnwindSafe for RecipeKind
impl Send for RecipeKind
impl Sync for RecipeKind
impl Unpin for RecipeKind
impl UnwindSafe for RecipeKind
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
)