public final class DamageSources extends Object
DamageSource
s that remain static, or
otherwise "ambiguous" with regards to the actual source. Examples include:
in the event an Entity
is being damaged due to falling through the
"void", an Entity
being damaged for being "on fire" in which case
an IgniteableData
may be present from the Entity
, etc.
DamageSource
s that rely on live instances of various objects,
including other Entity
instances, or a block at a specific
Location
rely on the various other types of DamageSource
s.
Modifier and Type | Field and Description |
---|---|
static DamageSource |
DRAGON_BREATH
Generally used to describe the damage taken when by the dragon breath attack.
|
static DamageSource |
DROWNING |
static DamageSource |
FALLING |
static DamageSource |
FIRE_TICK |
static DamageSource |
GENERIC |
static DamageSource |
MAGIC |
static DamageSource |
MELTING |
static DamageSource |
POISON |
static DamageSource |
STARVATION |
static DamageSource |
VOID |
static DamageSource |
WITHER |
public static final DamageSource DRAGON_BREATH
public static final DamageSource DROWNING
public static final DamageSource FALLING
public static final DamageSource FIRE_TICK
public static final DamageSource GENERIC
public static final DamageSource MAGIC
public static final DamageSource MELTING
public static final DamageSource POISON
public static final DamageSource STARVATION
public static final DamageSource VOID
public static final DamageSource WITHER