Interface ISecurityVillagersDamageEvent

All Superinterfaces:
SecurityVillagersEvent
All Known Implementing Classes:
SecurityVillagersDamageEvent

public interface ISecurityVillagersDamageEvent extends SecurityVillagersEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull AttackResult
    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
    Get the damaged entity
    void
    setAttackResult​(@NotNull AttackResult attackResult)
    Set the attack result of the event

    Methods inherited from interface com.alessiodp.securityvillagers.api.events.SecurityVillagersEvent

    getApi, setApi
  • 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

      @NotNull @NotNull AttackResult 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