#[repr(u32)]pub enum AttributeKind {
Show 13 variants
Boolean = 0,
TriState = 1,
Float = 2,
AngleDegrees = 3,
RgbColor = 4,
ArgbColor = 5,
MoonPhase = 6,
Activity = 7,
BedRule = 8,
Particle = 9,
AmbientParticles = 10,
BackgroundMusic = 11,
AmbientSounds = 12,
}Variants§
Boolean = 0
TriState = 1
Float = 2
AngleDegrees = 3
RgbColor = 4
ArgbColor = 5
MoonPhase = 6
Activity = 7
BedRule = 8
Particle = 9
AmbientParticles = 10
BackgroundMusic = 11
AmbientSounds = 12
Implementations§
Source§impl AttributeKind
impl AttributeKind
Source§impl AttributeKind
impl AttributeKind
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 AttributeKind
impl AzaleaRead for AttributeKind
Source§impl AzaleaWrite for AttributeKind
impl AzaleaWrite for AttributeKind
Source§impl Clone for AttributeKind
impl Clone for AttributeKind
Source§fn clone(&self) -> AttributeKind
fn clone(&self) -> AttributeKind
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 AttributeKind
impl Debug for AttributeKind
Source§impl<'de> Deserialize<'de> for AttributeKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AttributeKind
Available on crate feature
serde only.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 AttributeKind
impl Display for AttributeKind
Source§impl FromNbtTag for AttributeKind
impl FromNbtTag for AttributeKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for AttributeKind
impl FromStr for AttributeKind
Source§impl Hash for AttributeKind
impl Hash for AttributeKind
Source§impl PartialEq for AttributeKind
impl PartialEq for AttributeKind
Source§impl Registry for AttributeKind
impl Registry for AttributeKind
Source§impl Serialize for AttributeKind
Available on crate feature serde only.
impl Serialize for AttributeKind
Available on crate feature
serde only.Source§impl ToNbtTag for AttributeKind
impl ToNbtTag for AttributeKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for AttributeKind
impl TryFrom<u32> for AttributeKind
impl Copy for AttributeKind
impl Eq for AttributeKind
impl StructuralPartialEq for AttributeKind
Auto Trait Implementations§
impl Freeze for AttributeKind
impl RefUnwindSafe for AttributeKind
impl Send for AttributeKind
impl Sync for AttributeKind
impl Unpin for AttributeKind
impl UnwindSafe for AttributeKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.