Class DamageSources
java.lang.Object
org.spongepowered.api.event.cause.entity.damage.source.DamageSources
A static collection of various
DamageSources 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.
DamageSources 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 DamageSources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSource -
Method Summary
-
Field Details
-
DROWNING
-
DRYOUT
-
FALLING
-
FIRE_TICK
-
GENERIC
-
MAGIC
-
STARVATION
-
VOID
-
WITHER
-