#[repr(u32)]pub enum Attribute {
Show 32 variants
Armor = 0,
ArmorToughness = 1,
AttackDamage = 2,
AttackKnockback = 3,
AttackSpeed = 4,
BlockBreakSpeed = 5,
BlockInteractionRange = 6,
BurningTime = 7,
ExplosionKnockbackResistance = 8,
EntityInteractionRange = 9,
FallDamageMultiplier = 10,
FlyingSpeed = 11,
FollowRange = 12,
Gravity = 13,
JumpStrength = 14,
KnockbackResistance = 15,
Luck = 16,
MaxAbsorption = 17,
MaxHealth = 18,
MiningEfficiency = 19,
MovementEfficiency = 20,
MovementSpeed = 21,
OxygenBonus = 22,
SafeFallDistance = 23,
Scale = 24,
SneakingSpeed = 25,
SpawnReinforcements = 26,
StepHeight = 27,
SubmergedMiningSpeed = 28,
SweepingDamageRatio = 29,
TemptRange = 30,
WaterMovementEfficiency = 31,
}
Variants§
Armor = 0
ArmorToughness = 1
AttackDamage = 2
AttackKnockback = 3
AttackSpeed = 4
BlockBreakSpeed = 5
BlockInteractionRange = 6
BurningTime = 7
ExplosionKnockbackResistance = 8
EntityInteractionRange = 9
FallDamageMultiplier = 10
FlyingSpeed = 11
FollowRange = 12
Gravity = 13
JumpStrength = 14
KnockbackResistance = 15
Luck = 16
MaxAbsorption = 17
MaxHealth = 18
MiningEfficiency = 19
MovementEfficiency = 20
MovementSpeed = 21
OxygenBonus = 22
SafeFallDistance = 23
Scale = 24
SneakingSpeed = 25
SpawnReinforcements = 26
StepHeight = 27
SubmergedMiningSpeed = 28
SweepingDamageRatio = 29
TemptRange = 30
WaterMovementEfficiency = 31
Implementations§
Source§impl Attribute
impl Attribute
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attribute
impl<'de> Deserialize<'de> for Attribute
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 McBufReadable for Attribute
impl McBufReadable for Attribute
Source§impl McBufWritable for Attribute
impl McBufWritable for Attribute
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,
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
)