#[repr(u32)]pub enum Attribute {
Show 35 variants
Armor = 0,
ArmorToughness = 1,
AttackDamage = 2,
AttackKnockback = 3,
AttackSpeed = 4,
BlockBreakSpeed = 5,
BlockInteractionRange = 6,
BurningTime = 7,
CameraDistance = 8,
ExplosionKnockbackResistance = 9,
EntityInteractionRange = 10,
FallDamageMultiplier = 11,
FlyingSpeed = 12,
FollowRange = 13,
Gravity = 14,
JumpStrength = 15,
KnockbackResistance = 16,
Luck = 17,
MaxAbsorption = 18,
MaxHealth = 19,
MiningEfficiency = 20,
MovementEfficiency = 21,
MovementSpeed = 22,
OxygenBonus = 23,
SafeFallDistance = 24,
Scale = 25,
SneakingSpeed = 26,
SpawnReinforcements = 27,
StepHeight = 28,
SubmergedMiningSpeed = 29,
SweepingDamageRatio = 30,
TemptRange = 31,
WaterMovementEfficiency = 32,
WaypointTransmitRange = 33,
WaypointReceiveRange = 34,
}Variants§
Armor = 0
ArmorToughness = 1
AttackDamage = 2
AttackKnockback = 3
AttackSpeed = 4
BlockBreakSpeed = 5
BlockInteractionRange = 6
BurningTime = 7
CameraDistance = 8
ExplosionKnockbackResistance = 9
EntityInteractionRange = 10
FallDamageMultiplier = 11
FlyingSpeed = 12
FollowRange = 13
Gravity = 14
JumpStrength = 15
KnockbackResistance = 16
Luck = 17
MaxAbsorption = 18
MaxHealth = 19
MiningEfficiency = 20
MovementEfficiency = 21
MovementSpeed = 22
OxygenBonus = 23
SafeFallDistance = 24
Scale = 25
SneakingSpeed = 26
SpawnReinforcements = 27
StepHeight = 28
SubmergedMiningSpeed = 29
SweepingDamageRatio = 30
TemptRange = 31
WaterMovementEfficiency = 32
WaypointTransmitRange = 33
WaypointReceiveRange = 34
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attribute
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Attribute
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 FromNbtTag for Attribute
impl FromNbtTag for Attribute
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl ToNbtTag for Attribute
impl ToNbtTag for Attribute
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
impl Copy for Attribute
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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.