pub enum EnchantmentKey<Other = Identifier> {
Show 44 variants
AquaAffinity,
BaneOfArthropods,
BindingCurse,
BlastProtection,
Breach,
Channeling,
Density,
DepthStrider,
Efficiency,
FeatherFalling,
FireAspect,
FireProtection,
Flame,
Fortune,
FrostWalker,
Impaling,
Infinity,
Knockback,
Looting,
Loyalty,
LuckOfTheSea,
Lunge,
Lure,
Mending,
Multishot,
Piercing,
Power,
ProjectileProtection,
Protection,
Punch,
QuickCharge,
Respiration,
Riptide,
Sharpness,
SilkTouch,
Smite,
SoulSpeed,
SweepingEdge,
SwiftSneak,
Thorns,
Unbreaking,
VanishingCurse,
WindBurst,
Other(Other),
}Variants§
AquaAffinity
BaneOfArthropods
BindingCurse
BlastProtection
Breach
Channeling
Density
DepthStrider
Efficiency
FeatherFalling
FireAspect
FireProtection
Flame
Fortune
FrostWalker
Impaling
Infinity
Knockback
Looting
Loyalty
LuckOfTheSea
Lunge
Lure
Mending
Multishot
Piercing
Power
ProjectileProtection
Protection
Punch
QuickCharge
Respiration
Riptide
Sharpness
SilkTouch
Smite
SoulSpeed
SweepingEdge
SwiftSneak
Thorns
Unbreaking
VanishingCurse
WindBurst
Other(Other)
Implementations§
Trait Implementations§
Source§impl<Other: Clone> Clone for EnchantmentKey<Other>
impl<Other: Clone> Clone for EnchantmentKey<Other>
Source§fn clone(&self) -> EnchantmentKey<Other>
fn clone(&self) -> EnchantmentKey<Other>
Returns a duplicate 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 DataRegistryKey for EnchantmentKey
impl DataRegistryKey for EnchantmentKey
type Borrow<'a> = EnchantmentKey<&'a Identifier>
fn into_ident(self) -> Identifier
Source§impl<'a> DataRegistryKeyRef<'a> for EnchantmentKey<&'a Identifier>
impl<'a> DataRegistryKeyRef<'a> for EnchantmentKey<&'a Identifier>
type Owned = EnchantmentKey
fn to_owned(self) -> Self::Owned
fn from_ident(ident: &'a Identifier) -> Self
fn into_ident(self) -> Identifier
Source§impl<Other: Debug> Debug for EnchantmentKey<Other>
impl<Other: Debug> Debug for EnchantmentKey<Other>
Source§impl<'a> From<&'a Identifier> for EnchantmentKey<&'a Identifier>
impl<'a> From<&'a Identifier> for EnchantmentKey<&'a Identifier>
Source§fn from(ident: &'a Identifier) -> Self
fn from(ident: &'a Identifier) -> Self
Converts to this type from the input type.
Source§impl From<EnchantmentKey<&Identifier>> for Identifier
impl From<EnchantmentKey<&Identifier>> for Identifier
Source§fn from(registry: EnchantmentKey<&Identifier>) -> Self
fn from(registry: EnchantmentKey<&Identifier>) -> Self
Converts to this type from the input type.
Source§impl From<EnchantmentKey> for Identifier
impl From<EnchantmentKey> for Identifier
Source§fn from(registry: EnchantmentKey) -> Self
fn from(registry: EnchantmentKey) -> Self
Converts to this type from the input type.
Source§impl From<Identifier> for EnchantmentKey
impl From<Identifier> for EnchantmentKey
Source§fn from(ident: Identifier) -> Self
fn from(ident: Identifier) -> Self
Converts to this type from the input type.
Source§impl FromNbtTag for EnchantmentKey
impl FromNbtTag for EnchantmentKey
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl<Other: Hash> Hash for EnchantmentKey<Other>
impl<Other: Hash> Hash for EnchantmentKey<Other>
Source§impl<Other: PartialEq> PartialEq for EnchantmentKey<Other>
impl<Other: PartialEq> PartialEq for EnchantmentKey<Other>
impl<Other: Eq> Eq for EnchantmentKey<Other>
impl<Other> StructuralPartialEq for EnchantmentKey<Other>
Auto Trait Implementations§
impl<Other> Freeze for EnchantmentKey<Other>where
Other: Freeze,
impl<Other> RefUnwindSafe for EnchantmentKey<Other>where
Other: RefUnwindSafe,
impl<Other> Send for EnchantmentKey<Other>where
Other: Send,
impl<Other> Sync for EnchantmentKey<Other>where
Other: Sync,
impl<Other> Unpin for EnchantmentKey<Other>where
Other: Unpin,
impl<Other> UnwindSafe for EnchantmentKey<Other>where
Other: UnwindSafe,
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.