Enum minecraft_data::enchantment
source · #[repr(u8)]pub enum enchantment {
Show 39 variants
protection = 0,
fire_protection = 1,
feather_falling = 2,
blast_protection = 3,
projectile_protection = 4,
respiration = 5,
aqua_affinity = 6,
thorns = 7,
depth_strider = 8,
frost_walker = 9,
binding_curse = 10,
soul_speed = 11,
swift_sneak = 12,
sharpness = 13,
smite = 14,
bane_of_arthropods = 15,
knockback = 16,
fire_aspect = 17,
looting = 18,
sweeping = 19,
efficiency = 20,
silk_touch = 21,
unbreaking = 22,
fortune = 23,
power = 24,
punch = 25,
flame = 26,
infinity = 27,
luck_of_the_sea = 28,
lure = 29,
loyalty = 30,
impaling = 31,
riptide = 32,
channeling = 33,
multishot = 34,
quick_charge = 35,
piercing = 36,
mending = 37,
vanishing_curse = 38,
}Variants§
protection = 0
fire_protection = 1
feather_falling = 2
blast_protection = 3
projectile_protection = 4
respiration = 5
aqua_affinity = 6
thorns = 7
depth_strider = 8
frost_walker = 9
binding_curse = 10
soul_speed = 11
swift_sneak = 12
sharpness = 13
smite = 14
bane_of_arthropods = 15
knockback = 16
fire_aspect = 17
looting = 18
sweeping = 19
efficiency = 20
silk_touch = 21
unbreaking = 22
fortune = 23
power = 24
punch = 25
flame = 26
infinity = 27
luck_of_the_sea = 28
lure = 29
loyalty = 30
impaling = 31
riptide = 32
channeling = 33
multishot = 34
quick_charge = 35
piercing = 36
mending = 37
vanishing_curse = 38
Implementations§
Trait Implementations§
source§impl Clone for enchantment
impl Clone for enchantment
source§fn clone(&self) -> enchantment
fn clone(&self) -> enchantment
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 enchantment
impl Debug for enchantment
source§impl Display for enchantment
impl Display for enchantment
source§impl Hash for enchantment
impl Hash for enchantment
source§impl PartialEq for enchantment
impl PartialEq for enchantment
source§fn eq(&self, other: &enchantment) -> bool
fn eq(&self, other: &enchantment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Write for enchantment
impl Write for enchantment
impl Copy for enchantment
impl Eq for enchantment
impl StructuralEq for enchantment
impl StructuralPartialEq for enchantment
Auto Trait Implementations§
impl RefUnwindSafe for enchantment
impl Send for enchantment
impl Sync for enchantment
impl Unpin for enchantment
impl UnwindSafe for enchantment
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