#[repr(u32)]pub enum DataComponentKind {
Show 67 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,
HideAdditionalTooltip = 15,
HideTooltip = 16,
RepairCost = 17,
CreativeSlotLock = 18,
EnchantmentGlintOverride = 19,
IntangibleProjectile = 20,
Food = 21,
Consumable = 22,
UseRemainder = 23,
UseCooldown = 24,
DamageResistant = 25,
Tool = 26,
Enchantable = 27,
Equippable = 28,
Repairable = 29,
Glider = 30,
TooltipStyle = 31,
DeathProtection = 32,
StoredEnchantments = 33,
DyedColor = 34,
MapColor = 35,
MapId = 36,
MapDecorations = 37,
MapPostProcessing = 38,
ChargedProjectiles = 39,
BundleContents = 40,
PotionContents = 41,
SuspiciousStewEffects = 42,
WritableBookContent = 43,
WrittenBookContent = 44,
Trim = 45,
DebugStickState = 46,
EntityData = 47,
BucketEntityData = 48,
BlockEntityData = 49,
Instrument = 50,
OminousBottleAmplifier = 51,
JukeboxPlayable = 52,
Recipes = 53,
LodestoneTracker = 54,
FireworkExplosion = 55,
Fireworks = 56,
Profile = 57,
NoteBlockSound = 58,
BannerPatterns = 59,
BaseColor = 60,
PotDecorations = 61,
Container = 62,
BlockState = 63,
Bees = 64,
Lock = 65,
ContainerLoot = 66,
}
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
HideAdditionalTooltip = 15
HideTooltip = 16
RepairCost = 17
CreativeSlotLock = 18
EnchantmentGlintOverride = 19
IntangibleProjectile = 20
Food = 21
Consumable = 22
UseRemainder = 23
UseCooldown = 24
DamageResistant = 25
Tool = 26
Enchantable = 27
Equippable = 28
Repairable = 29
Glider = 30
TooltipStyle = 31
DeathProtection = 32
StoredEnchantments = 33
DyedColor = 34
MapColor = 35
MapId = 36
MapDecorations = 37
MapPostProcessing = 38
ChargedProjectiles = 39
BundleContents = 40
PotionContents = 41
SuspiciousStewEffects = 42
WritableBookContent = 43
WrittenBookContent = 44
Trim = 45
DebugStickState = 46
EntityData = 47
BucketEntityData = 48
BlockEntityData = 49
Instrument = 50
OminousBottleAmplifier = 51
JukeboxPlayable = 52
Recipes = 53
LodestoneTracker = 54
FireworkExplosion = 55
Fireworks = 56
Profile = 57
NoteBlockSound = 58
BannerPatterns = 59
BaseColor = 60
PotDecorations = 61
Container = 62
BlockState = 63
Bees = 64
Lock = 65
ContainerLoot = 66
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 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 DataComponentKind
impl Debug for DataComponentKind
Source§impl<'de> Deserialize<'de> for DataComponentKind
impl<'de> Deserialize<'de> for DataComponentKind
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
impl Serialize for DataComponentKind
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