#[repr(u32)]pub enum EnchantmentEffectComponentKind {
Show 30 variants
DamageProtection = 0,
DamageImmunity = 1,
Damage = 2,
SmashDamagePerFallenBlock = 3,
Knockback = 4,
ArmorEffectiveness = 5,
PostAttack = 6,
HitBlock = 7,
ItemDamage = 8,
Attributes = 9,
EquipmentDrops = 10,
LocationChanged = 11,
Tick = 12,
AmmoUse = 13,
ProjectilePiercing = 14,
ProjectileSpawned = 15,
ProjectileSpread = 16,
ProjectileCount = 17,
TridentReturnAcceleration = 18,
FishingTimeReduction = 19,
FishingLuckBonus = 20,
BlockExperience = 21,
MobExperience = 22,
RepairWithXp = 23,
CrossbowChargeTime = 24,
CrossbowChargingSounds = 25,
TridentSound = 26,
PreventEquipmentDrop = 27,
PreventArmorChange = 28,
TridentSpinAttackStrength = 29,
}
Variants§
DamageProtection = 0
DamageImmunity = 1
Damage = 2
SmashDamagePerFallenBlock = 3
Knockback = 4
ArmorEffectiveness = 5
PostAttack = 6
HitBlock = 7
ItemDamage = 8
Attributes = 9
EquipmentDrops = 10
LocationChanged = 11
Tick = 12
AmmoUse = 13
ProjectilePiercing = 14
ProjectileSpawned = 15
ProjectileSpread = 16
ProjectileCount = 17
TridentReturnAcceleration = 18
FishingTimeReduction = 19
FishingLuckBonus = 20
BlockExperience = 21
MobExperience = 22
RepairWithXp = 23
CrossbowChargeTime = 24
CrossbowChargingSounds = 25
TridentSound = 26
PreventEquipmentDrop = 27
PreventArmorChange = 28
TridentSpinAttackStrength = 29
Implementations§
Source§impl EnchantmentEffectComponentKind
impl EnchantmentEffectComponentKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl EnchantmentEffectComponentKind
impl EnchantmentEffectComponentKind
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 Clone for EnchantmentEffectComponentKind
impl Clone for EnchantmentEffectComponentKind
Source§fn clone(&self) -> EnchantmentEffectComponentKind
fn clone(&self) -> EnchantmentEffectComponentKind
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<'de> Deserialize<'de> for EnchantmentEffectComponentKind
impl<'de> Deserialize<'de> for EnchantmentEffectComponentKind
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 FromNbtTag for EnchantmentEffectComponentKind
impl FromNbtTag for EnchantmentEffectComponentKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl PartialEq for EnchantmentEffectComponentKind
impl PartialEq for EnchantmentEffectComponentKind
Source§fn eq(&self, other: &EnchantmentEffectComponentKind) -> bool
fn eq(&self, other: &EnchantmentEffectComponentKind) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl ToNbtTag for EnchantmentEffectComponentKind
impl ToNbtTag for EnchantmentEffectComponentKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for EnchantmentEffectComponentKind
impl TryFrom<u32> for EnchantmentEffectComponentKind
impl Copy for EnchantmentEffectComponentKind
impl Eq for EnchantmentEffectComponentKind
impl StructuralPartialEq for EnchantmentEffectComponentKind
Auto Trait Implementations§
impl Freeze for EnchantmentEffectComponentKind
impl RefUnwindSafe for EnchantmentEffectComponentKind
impl Send for EnchantmentEffectComponentKind
impl Sync for EnchantmentEffectComponentKind
impl Unpin for EnchantmentEffectComponentKind
impl UnwindSafe for EnchantmentEffectComponentKind
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)