#[repr(u32)]pub enum DataComponentKind {
Show 96 variants
    CustomData = 0,
    MaxStackSize = 1,
    MaxDamage = 2,
    Damage = 3,
    Unbreakable = 4,
    CustomName = 5,
    ItemName = 6,
    ItemModel = 7,
    Lore = 8,
    Rarity = 9,
    Enchantments = 10,
    CanPlaceOn = 11,
    CanBreak = 12,
    AttributeModifiers = 13,
    CustomModelData = 14,
    TooltipDisplay = 15,
    RepairCost = 16,
    CreativeSlotLock = 17,
    EnchantmentGlintOverride = 18,
    IntangibleProjectile = 19,
    Food = 20,
    Consumable = 21,
    UseRemainder = 22,
    UseCooldown = 23,
    DamageResistant = 24,
    Tool = 25,
    Weapon = 26,
    Enchantable = 27,
    Equippable = 28,
    Repairable = 29,
    Glider = 30,
    TooltipStyle = 31,
    DeathProtection = 32,
    BlocksAttacks = 33,
    StoredEnchantments = 34,
    DyedColor = 35,
    MapColor = 36,
    MapId = 37,
    MapDecorations = 38,
    MapPostProcessing = 39,
    ChargedProjectiles = 40,
    BundleContents = 41,
    PotionContents = 42,
    PotionDurationScale = 43,
    SuspiciousStewEffects = 44,
    WritableBookContent = 45,
    WrittenBookContent = 46,
    Trim = 47,
    DebugStickState = 48,
    EntityData = 49,
    BucketEntityData = 50,
    BlockEntityData = 51,
    Instrument = 52,
    ProvidesTrimMaterial = 53,
    OminousBottleAmplifier = 54,
    JukeboxPlayable = 55,
    ProvidesBannerPatterns = 56,
    Recipes = 57,
    LodestoneTracker = 58,
    FireworkExplosion = 59,
    Fireworks = 60,
    Profile = 61,
    NoteBlockSound = 62,
    BannerPatterns = 63,
    BaseColor = 64,
    PotDecorations = 65,
    Container = 66,
    BlockState = 67,
    Bees = 68,
    Lock = 69,
    ContainerLoot = 70,
    BreakSound = 71,
    VillagerVariant = 72,
    WolfVariant = 73,
    WolfSoundVariant = 74,
    WolfCollar = 75,
    FoxVariant = 76,
    SalmonSize = 77,
    ParrotVariant = 78,
    TropicalFishPattern = 79,
    TropicalFishBaseColor = 80,
    TropicalFishPatternColor = 81,
    MooshroomVariant = 82,
    RabbitVariant = 83,
    PigVariant = 84,
    CowVariant = 85,
    ChickenVariant = 86,
    FrogVariant = 87,
    HorseVariant = 88,
    PaintingVariant = 89,
    LlamaVariant = 90,
    AxolotlVariant = 91,
    CatVariant = 92,
    CatCollar = 93,
    SheepColor = 94,
    ShulkerColor = 95,
}Variants§
CustomData = 0
MaxStackSize = 1
MaxDamage = 2
Damage = 3
Unbreakable = 4
CustomName = 5
ItemName = 6
ItemModel = 7
Lore = 8
Rarity = 9
Enchantments = 10
CanPlaceOn = 11
CanBreak = 12
AttributeModifiers = 13
CustomModelData = 14
TooltipDisplay = 15
RepairCost = 16
CreativeSlotLock = 17
EnchantmentGlintOverride = 18
IntangibleProjectile = 19
Food = 20
Consumable = 21
UseRemainder = 22
UseCooldown = 23
DamageResistant = 24
Tool = 25
Weapon = 26
Enchantable = 27
Equippable = 28
Repairable = 29
Glider = 30
TooltipStyle = 31
DeathProtection = 32
BlocksAttacks = 33
StoredEnchantments = 34
DyedColor = 35
MapColor = 36
MapId = 37
MapDecorations = 38
MapPostProcessing = 39
ChargedProjectiles = 40
BundleContents = 41
PotionContents = 42
PotionDurationScale = 43
SuspiciousStewEffects = 44
WritableBookContent = 45
WrittenBookContent = 46
Trim = 47
DebugStickState = 48
EntityData = 49
BucketEntityData = 50
BlockEntityData = 51
Instrument = 52
ProvidesTrimMaterial = 53
OminousBottleAmplifier = 54
JukeboxPlayable = 55
ProvidesBannerPatterns = 56
Recipes = 57
LodestoneTracker = 58
FireworkExplosion = 59
Fireworks = 60
Profile = 61
NoteBlockSound = 62
BannerPatterns = 63
BaseColor = 64
PotDecorations = 65
Container = 66
BlockState = 67
Bees = 68
Lock = 69
ContainerLoot = 70
BreakSound = 71
VillagerVariant = 72
WolfVariant = 73
WolfSoundVariant = 74
WolfCollar = 75
FoxVariant = 76
SalmonSize = 77
ParrotVariant = 78
TropicalFishPattern = 79
TropicalFishBaseColor = 80
TropicalFishPatternColor = 81
MooshroomVariant = 82
RabbitVariant = 83
PigVariant = 84
CowVariant = 85
ChickenVariant = 86
FrogVariant = 87
HorseVariant = 88
PaintingVariant = 89
LlamaVariant = 90
AxolotlVariant = 91
CatVariant = 92
CatCollar = 93
SheepColor = 94
ShulkerColor = 95
Implementations§
Source§impl DataComponentKind
 
impl DataComponentKind
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl DataComponentKind
 
impl DataComponentKind
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 DataComponentKind
 
impl AzaleaRead for DataComponentKind
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for DataComponentKind
 
impl AzaleaWrite for DataComponentKind
Source§impl Clone for DataComponentKind
 
impl Clone for DataComponentKind
Source§fn clone(&self) -> DataComponentKind
 
fn clone(&self) -> DataComponentKind
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 DataComponentKind
 
impl Debug for DataComponentKind
Source§impl<'de> Deserialize<'de> for DataComponentKind
Available on crate feature serde only. 
impl<'de> Deserialize<'de> for DataComponentKind
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 DataComponentKind
 
impl Display for DataComponentKind
Source§impl FromNbtTag for DataComponentKind
 
impl FromNbtTag for DataComponentKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for DataComponentKind
 
impl FromStr for DataComponentKind
Source§impl Hash for DataComponentKind
 
impl Hash for DataComponentKind
Source§impl PartialEq for DataComponentKind
 
impl PartialEq for DataComponentKind
Source§impl Registry for DataComponentKind
 
impl Registry for DataComponentKind
Source§impl Serialize for DataComponentKind
Available on crate feature serde only. 
impl Serialize for DataComponentKind
Available on crate feature 
serde only.Source§impl ToNbtTag for DataComponentKind
 
impl ToNbtTag for DataComponentKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for DataComponentKind
 
impl TryFrom<u32> for DataComponentKind
impl Copy for DataComponentKind
impl Eq for DataComponentKind
impl StructuralPartialEq for DataComponentKind
Auto Trait Implementations§
impl Freeze for DataComponentKind
impl RefUnwindSafe for DataComponentKind
impl Send for DataComponentKind
impl Sync for DataComponentKind
impl Unpin for DataComponentKind
impl UnwindSafe for DataComponentKind
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.