pub enum RecipeBookType {
Crafting,
Furnace,
BlastFurnace,
Smoker,
}
Variants§
Implementations§
Source§impl RecipeBookType
impl RecipeBookType
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for RecipeBookType
impl Clone for RecipeBookType
Source§fn clone(&self) -> RecipeBookType
fn clone(&self) -> RecipeBookType
Returns a duplicate 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 RecipeBookType
impl Debug for RecipeBookType
Source§impl Deserialize for RecipeBookType
impl Deserialize for RecipeBookType
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for RecipeBookType
impl PartialEq for RecipeBookType
Source§impl Serialize for RecipeBookType
impl Serialize for RecipeBookType
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for RecipeBookType
Auto Trait Implementations§
impl Freeze for RecipeBookType
impl RefUnwindSafe for RecipeBookType
impl Send for RecipeBookType
impl Sync for RecipeBookType
impl Unpin for RecipeBookType
impl UnwindSafe for RecipeBookType
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