Class DamageSources


  • public final class DamageSources
    extends Object
    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.