Class EntityDamage

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

public class EntityDamage extends DamageType
Represents damage inflicted by an Entity.
  • Constructor Details

    • EntityDamage

      public EntityDamage(@NotNull @NotNull Entity source)
  • Method Details

    • getSource

      @NotNull public @NotNull Entity getSource()
      Gets the source of the damage.
      Returns:
      the source