Class DamageSources
java.lang.Object
org.spongepowered.api.event.cause.entity.damage.source.DamageSources
A static collection of various
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 Keys.FIRE_TICKS
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
ServerLocation
rely on the various other types of DamageSource
s.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
static final DamageSource
-
Method Summary
-
Field Details
-
DROWNING
-
DRYOUT
-
FALLING
-
FIRE_TICK
-
GENERIC
-
MAGIC
-
STARVATION
-
VOID
-
WITHER
-