#[repr(u32)]pub enum DataComponentPredicateKind {
Show 14 variants
Damage = 0,
Enchantments = 1,
StoredEnchantments = 2,
PotionContents = 3,
CustomData = 4,
Container = 5,
BundleContents = 6,
FireworkExplosion = 7,
Fireworks = 8,
WritableBookContent = 9,
WrittenBookContent = 10,
AttributeModifiers = 11,
Trim = 12,
JukeboxPlayable = 13,
}
Variants§
Damage = 0
Enchantments = 1
StoredEnchantments = 2
PotionContents = 3
CustomData = 4
Container = 5
BundleContents = 6
FireworkExplosion = 7
Fireworks = 8
WritableBookContent = 9
WrittenBookContent = 10
AttributeModifiers = 11
Trim = 12
JukeboxPlayable = 13
Implementations§
Source§impl DataComponentPredicateKind
impl DataComponentPredicateKind
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl DataComponentPredicateKind
impl DataComponentPredicateKind
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 DataComponentPredicateKind
impl AzaleaRead for DataComponentPredicateKind
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl Clone for DataComponentPredicateKind
impl Clone for DataComponentPredicateKind
Source§fn clone(&self) -> DataComponentPredicateKind
fn clone(&self) -> DataComponentPredicateKind
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 DataComponentPredicateKind
impl Debug for DataComponentPredicateKind
Source§impl<'de> Deserialize<'de> for DataComponentPredicateKind
impl<'de> Deserialize<'de> for DataComponentPredicateKind
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 DataComponentPredicateKind
impl Display for DataComponentPredicateKind
Source§impl FromNbtTag for DataComponentPredicateKind
impl FromNbtTag for DataComponentPredicateKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for DataComponentPredicateKind
impl FromStr for DataComponentPredicateKind
Source§impl Hash for DataComponentPredicateKind
impl Hash for DataComponentPredicateKind
Source§impl ToNbtTag for DataComponentPredicateKind
impl ToNbtTag for DataComponentPredicateKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for DataComponentPredicateKind
impl TryFrom<u32> for DataComponentPredicateKind
impl Copy for DataComponentPredicateKind
impl Eq for DataComponentPredicateKind
impl StructuralPartialEq for DataComponentPredicateKind
Auto Trait Implementations§
impl Freeze for DataComponentPredicateKind
impl RefUnwindSafe for DataComponentPredicateKind
impl Send for DataComponentPredicateKind
impl Sync for DataComponentPredicateKind
impl Unpin for DataComponentPredicateKind
impl UnwindSafe for DataComponentPredicateKind
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