Interface ISecurityVillagersInteractProtectionEvent
- All Superinterfaces:
Cancellable
,SecurityVillagersEvent
- All Known Implementing Classes:
SecurityVillagersInteractProtectionEvent
public interface ISecurityVillagersInteractProtectionEvent
extends SecurityVillagersEvent, Cancellable
-
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.entity.Entity
Get the interacted entity@NotNull org.bukkit.entity.Player
Get who is interacting with the entity@NotNull InteractType
Get the type of interactionMethods inherited from interface com.alessiodp.securityvillagers.api.events.Cancellable
isCancelled, setCancelled
Methods inherited from interface com.alessiodp.securityvillagers.api.events.SecurityVillagersEvent
getApi, setApi
-
Method Details
-
getEntity
@NotNull @NotNull org.bukkit.entity.Entity getEntity()Get the interacted entity- Returns:
- the
Entity
-
getInteractor
@NotNull @NotNull org.bukkit.entity.Player getInteractor()Get who is interacting with the entity- Returns:
- the
Player
interactor
-
getInteractType
Get the type of interaction- Returns:
- the
InteractType
-