pub enum DamageKindKey<Other = Identifier> {
Show 51 variants
Arrow,
BadRespawnPoint,
Cactus,
Campfire,
Cramming,
DragonBreath,
Drown,
DryOut,
EnderPearl,
Explosion,
Fall,
FallingAnvil,
FallingBlock,
FallingStalactite,
Fireball,
Fireworks,
FlyIntoWall,
Freeze,
Generic,
GenericKill,
HotFloor,
InFire,
InWall,
IndirectMagic,
Lava,
LightningBolt,
MaceSmash,
Magic,
MobAttack,
MobAttackNoAggro,
MobProjectile,
OnFire,
OutOfWorld,
OutsideBorder,
PlayerAttack,
PlayerExplosion,
SonicBoom,
Spear,
Spit,
Stalagmite,
Starve,
Sting,
SweetBerryBush,
Thorns,
Thrown,
Trident,
UnattributedFireball,
WindCharge,
Wither,
WitherSkull,
Other(Other),
}Variants§
Arrow
BadRespawnPoint
Cactus
Campfire
Cramming
DragonBreath
Drown
DryOut
EnderPearl
Explosion
Fall
FallingAnvil
FallingBlock
FallingStalactite
Fireball
Fireworks
FlyIntoWall
Freeze
Generic
GenericKill
HotFloor
InFire
InWall
IndirectMagic
Lava
LightningBolt
MaceSmash
Magic
MobAttack
MobAttackNoAggro
MobProjectile
OnFire
OutOfWorld
OutsideBorder
PlayerAttack
PlayerExplosion
SonicBoom
Spear
Spit
Stalagmite
Starve
Sting
SweetBerryBush
Thorns
Thrown
Trident
UnattributedFireball
WindCharge
Wither
WitherSkull
Other(Other)
Implementations§
Source§impl DamageKindKey
impl DamageKindKey
Trait Implementations§
Source§impl<Other: Clone> Clone for DamageKindKey<Other>
impl<Other: Clone> Clone for DamageKindKey<Other>
Source§fn clone(&self) -> DamageKindKey<Other>
fn clone(&self) -> DamageKindKey<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 DamageKindKey
impl DataRegistryKey for DamageKindKey
type Borrow<'a> = DamageKindKey<&'a Identifier>
fn into_ident(self) -> Identifier
Source§impl<'a> DataRegistryKeyRef<'a> for DamageKindKey<&'a Identifier>
impl<'a> DataRegistryKeyRef<'a> for DamageKindKey<&'a Identifier>
type Owned = DamageKindKey
fn to_owned(self) -> Self::Owned
fn from_ident(ident: &'a Identifier) -> Self
fn into_ident(self) -> Identifier
Source§impl<Other: Debug> Debug for DamageKindKey<Other>
impl<Other: Debug> Debug for DamageKindKey<Other>
Source§impl<'a> From<&'a Identifier> for DamageKindKey<&'a Identifier>
impl<'a> From<&'a Identifier> for DamageKindKey<&'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<DamageKindKey<&Identifier>> for Identifier
impl From<DamageKindKey<&Identifier>> for Identifier
Source§fn from(registry: DamageKindKey<&Identifier>) -> Self
fn from(registry: DamageKindKey<&Identifier>) -> Self
Converts to this type from the input type.
Source§impl From<DamageKindKey> for Identifier
impl From<DamageKindKey> for Identifier
Source§fn from(registry: DamageKindKey) -> Self
fn from(registry: DamageKindKey) -> Self
Converts to this type from the input type.
Source§impl From<Identifier> for DamageKindKey
impl From<Identifier> for DamageKindKey
Source§fn from(ident: Identifier) -> Self
fn from(ident: Identifier) -> Self
Converts to this type from the input type.
Source§impl FromNbtTag for DamageKindKey
impl FromNbtTag for DamageKindKey
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 DamageKindKey<Other>
impl<Other: Hash> Hash for DamageKindKey<Other>
Source§impl<Other: PartialEq> PartialEq for DamageKindKey<Other>
impl<Other: PartialEq> PartialEq for DamageKindKey<Other>
impl<Other: Eq> Eq for DamageKindKey<Other>
impl<Other> StructuralPartialEq for DamageKindKey<Other>
Auto Trait Implementations§
impl<Other> Freeze for DamageKindKey<Other>where
Other: Freeze,
impl<Other> RefUnwindSafe for DamageKindKey<Other>where
Other: RefUnwindSafe,
impl<Other> Send for DamageKindKey<Other>where
Other: Send,
impl<Other> Sync for DamageKindKey<Other>where
Other: Sync,
impl<Other> Unpin for DamageKindKey<Other>where
Other: Unpin,
impl<Other> UnwindSafe for DamageKindKey<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.