Class PositionalDamage

java.lang.Object
net.minestom.server.entity.damage.Damage
net.minestom.server.entity.damage.PositionalDamage
All Implemented Interfaces:
Taggable, TagReadable, TagWritable

public class PositionalDamage extends Damage
Represents damage that is associated with a certain position.
  • Constructor Details

    • PositionalDamage

      public PositionalDamage(@NotNull @NotNull DamageType type, @NotNull @NotNull Point sourcePosition, float amount)
  • Method Details

    • getSourcePosition

      @NotNull public @NotNull Point getSourcePosition()
      Description copied from class: Damage
      Gets the position of the source of the damage, or null if there is none. This may differ from the source entity's position.
      Overrides:
      getSourcePosition in class Damage
      Returns:
      The source position