#[repr(u32)]pub enum TrimMaterial {
Quartz = 0,
Iron = 1,
Netherite = 2,
Redstone = 3,
Copper = 4,
Gold = 5,
Emerald = 6,
Diamond = 7,
Lapis = 8,
Amethyst = 9,
}
Variants§
Quartz = 0
Iron = 1
Netherite = 2
Redstone = 3
Copper = 4
Gold = 5
Emerald = 6
Diamond = 7
Lapis = 8
Amethyst = 9
Implementations§
Source§impl TrimMaterial
impl TrimMaterial
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl TrimMaterial
impl TrimMaterial
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 AzaleaRead for TrimMaterial
impl AzaleaRead for TrimMaterial
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for TrimMaterial
impl AzaleaWrite for TrimMaterial
Source§impl Clone for TrimMaterial
impl Clone for TrimMaterial
Source§fn clone(&self) -> TrimMaterial
fn clone(&self) -> TrimMaterial
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 TrimMaterial
impl Debug for TrimMaterial
Source§impl<'de> Deserialize<'de> for TrimMaterial
impl<'de> Deserialize<'de> for TrimMaterial
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 TrimMaterial
impl Display for TrimMaterial
Source§impl FromNbtTag for TrimMaterial
impl FromNbtTag for TrimMaterial
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for TrimMaterial
impl FromStr for TrimMaterial
Source§impl Hash for TrimMaterial
impl Hash for TrimMaterial
Source§impl PartialEq for TrimMaterial
impl PartialEq for TrimMaterial
Source§impl Registry for TrimMaterial
impl Registry for TrimMaterial
Source§impl Serialize for TrimMaterial
impl Serialize for TrimMaterial
Source§impl ToNbtTag for TrimMaterial
impl ToNbtTag for TrimMaterial
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for TrimMaterial
impl TryFrom<u32> for TrimMaterial
impl Copy for TrimMaterial
impl Eq for TrimMaterial
impl StructuralPartialEq for TrimMaterial
Auto Trait Implementations§
impl Freeze for TrimMaterial
impl RefUnwindSafe for TrimMaterial
impl Send for TrimMaterial
impl Sync for TrimMaterial
impl Unpin for TrimMaterial
impl UnwindSafe for TrimMaterial
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