Class DamageSources
- java.lang.Object
-
- org.spongepowered.api.event.cause.entity.damage.source.DamageSources
-
public final class DamageSources extends Object
A static collection of variousDamageSource
s that remain static, or otherwise "ambiguous" with regards to the actual source. Examples include: in the event anEntity
is being damaged due to falling through the "void", anEntity
being damaged for being "on fire" in which case anKeys.FIRE_TICKS
may be present from theEntity
, etc.DamageSource
s that rely on live instances of various objects, including otherEntity
instances, or a block at a specificServerLocation
rely on the various other types ofDamageSource
s.
-
-
Field Summary
Fields Modifier and Type Field Description static DamageSource
DROWNING
static DamageSource
DRYOUT
static DamageSource
FALLING
static DamageSource
FIRE_TICK
static DamageSource
GENERIC
static DamageSource
MAGIC
static DamageSource
STARVATION
static DamageSource
VOID
static DamageSource
WITHER
-
-
-
Field Detail
-
DROWNING
public static final DamageSource DROWNING
-
DRYOUT
public static final DamageSource DRYOUT
-
FALLING
public static final DamageSource FALLING
-
FIRE_TICK
public static final DamageSource FIRE_TICK
-
GENERIC
public static final DamageSource GENERIC
-
MAGIC
public static final DamageSource MAGIC
-
STARVATION
public static final DamageSource STARVATION
-
VOID
public static final DamageSource VOID
-
WITHER
public static final DamageSource WITHER
-
-