#[repr(u32)]pub enum RecipeBookCategory {
Show 13 variants
CraftingBuildingBlocks = 0,
CraftingRedstone = 1,
CraftingEquipment = 2,
CraftingMisc = 3,
FurnaceFood = 4,
FurnaceBlocks = 5,
FurnaceMisc = 6,
BlastFurnaceBlocks = 7,
BlastFurnaceMisc = 8,
SmokerFood = 9,
Stonecutter = 10,
Smithing = 11,
Campfire = 12,
}
Variants§
CraftingBuildingBlocks = 0
CraftingRedstone = 1
CraftingEquipment = 2
CraftingMisc = 3
FurnaceFood = 4
FurnaceBlocks = 5
FurnaceMisc = 6
BlastFurnaceBlocks = 7
BlastFurnaceMisc = 8
SmokerFood = 9
Stonecutter = 10
Smithing = 11
Campfire = 12
Implementations§
Source§impl RecipeBookCategory
impl RecipeBookCategory
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl RecipeBookCategory
impl RecipeBookCategory
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 RecipeBookCategory
impl Clone for RecipeBookCategory
Source§fn clone(&self) -> RecipeBookCategory
fn clone(&self) -> RecipeBookCategory
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 RecipeBookCategory
impl Debug for RecipeBookCategory
Source§impl<'de> Deserialize<'de> for RecipeBookCategory
impl<'de> Deserialize<'de> for RecipeBookCategory
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 RecipeBookCategory
impl Display for RecipeBookCategory
Source§impl FromNbtTag for RecipeBookCategory
impl FromNbtTag for RecipeBookCategory
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for RecipeBookCategory
impl FromStr for RecipeBookCategory
Source§impl Hash for RecipeBookCategory
impl Hash for RecipeBookCategory
Source§impl McBufReadable for RecipeBookCategory
impl McBufReadable for RecipeBookCategory
Source§impl McBufWritable for RecipeBookCategory
impl McBufWritable for RecipeBookCategory
Source§impl PartialEq for RecipeBookCategory
impl PartialEq for RecipeBookCategory
Source§impl Registry for RecipeBookCategory
impl Registry for RecipeBookCategory
Source§impl Serialize for RecipeBookCategory
impl Serialize for RecipeBookCategory
Source§impl ToNbtTag for RecipeBookCategory
impl ToNbtTag for RecipeBookCategory
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for RecipeBookCategory
impl TryFrom<u32> for RecipeBookCategory
impl Copy for RecipeBookCategory
impl Eq for RecipeBookCategory
impl StructuralPartialEq for RecipeBookCategory
Auto Trait Implementations§
impl Freeze for RecipeBookCategory
impl RefUnwindSafe for RecipeBookCategory
impl Send for RecipeBookCategory
impl Sync for RecipeBookCategory
impl Unpin for RecipeBookCategory
impl UnwindSafe for RecipeBookCategory
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
)