Class SecurityVillagersDamageEvent
java.lang.Object
org.bukkit.event.Event
com.alessiodp.securityvillagers.api.events.BukkitSecurityVillagersEvent
com.alessiodp.securityvillagers.api.events.bukkit.SecurityVillagersDamageEvent
- All Implemented Interfaces:
ISecurityVillagersDamageEvent,SecurityVillagersEvent
public class SecurityVillagersDamageEvent
extends BukkitSecurityVillagersEvent
implements ISecurityVillagersDamageEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionSecurityVillagersDamageEvent(org.bukkit.entity.Entity entity, org.bukkit.entity.Entity damager, AttackResult attackResult) -
Method Summary
Modifier and TypeMethodDescription@NotNull AttackResultGet the attack result of the event.@NotNull org.bukkit.entity.EntityGet who is doing damage to the entity@NotNull org.bukkit.entity.EntityGet the damaged entityvoidsetAttackResult(@NotNull AttackResult attackResult)Set the attack result of the eventMethods inherited from class com.alessiodp.securityvillagers.api.events.BukkitSecurityVillagersEvent
getApi, getHandlerList, getHandlers, setApiMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alessiodp.securityvillagers.api.events.SecurityVillagersEvent
getApi, setApi
-
Constructor Details
-
SecurityVillagersDamageEvent
public SecurityVillagersDamageEvent(org.bukkit.entity.Entity entity, org.bukkit.entity.Entity damager, AttackResult attackResult)
-
-
Method Details
-
getEntity
@NotNull public @NotNull org.bukkit.entity.Entity getEntity()Description copied from interface:ISecurityVillagersDamageEventGet the damaged entity- Specified by:
getEntityin interfaceISecurityVillagersDamageEvent- Returns:
- the
Entity
-
getDamager
@NotNull public @NotNull org.bukkit.entity.Entity getDamager()Description copied from interface:ISecurityVillagersDamageEventGet who is doing damage to the entity- Specified by:
getDamagerin interfaceISecurityVillagersDamageEvent- Returns:
- the
Entitydamager
-
getAttackResult
Description copied from interface:ISecurityVillagersDamageEventGet the attack result of the event.- Specified by:
getAttackResultin interfaceISecurityVillagersDamageEvent- Returns:
- the
AttackResult
-
setAttackResult
Description copied from interface:ISecurityVillagersDamageEventSet the attack result of the event- Specified by:
setAttackResultin interfaceISecurityVillagersDamageEvent- Parameters:
attackResult- the attack result to set, cannot be null
-