pub struct DamageType {
pub key: Identifier,
pub message_id: &'static str,
pub scaling: DamageScaling,
pub exhaustion: f32,
pub effects: DamageEffects,
pub death_message_type: DeathMessageType,
}Expand description
Represents a damage type definition from a data pack JSON file.
Fields§
§key: Identifier§message_id: &'static str§scaling: DamageScaling§exhaustion: f32§effects: DamageEffects§death_message_type: DeathMessageTypeTrait Implementations§
Source§impl Debug for DamageType
impl Debug for DamageType
Source§impl RegistryEntry for DamageType
impl RegistryEntry for DamageType
Source§impl ToNbtTag for &DamageType
impl ToNbtTag for &DamageType
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Auto Trait Implementations§
impl Freeze for DamageType
impl RefUnwindSafe for DamageType
impl Send for DamageType
impl Sync for DamageType
impl Unpin for DamageType
impl UnsafeUnpin for DamageType
impl UnwindSafe for DamageType
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