-
Method Summary
Get the attack result of the event.
@NotNull org.bukkit.entity.Entity
Get who is doing damage to the entity
@NotNull org.bukkit.entity.Entity
void
Set the attack result of the event
-
Method Details
-
getEntity
@NotNull
@NotNull org.bukkit.entity.Entity getEntity()
Get the damaged entity
- Returns:
- the
Entity
-
getDamager
@NotNull
@NotNull org.bukkit.entity.Entity getDamager()
Get who is doing damage to the entity
- Returns:
- the
Entity
damager
-
getAttackResult
Get the attack result of the event.
- Returns:
- the
AttackResult
-
setAttackResult
void setAttackResult
(@NotNull
@NotNull AttackResult attackResult)
Set the attack result of the event
- Parameters:
attackResult
- the attack result to set, cannot be null