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.EntityGet the interacted entity@NotNull org.bukkit.entity.PlayerGet who is interacting with the entity@NotNull InteractTypeGet the type of interactionMethods inherited from interface com.alessiodp.securityvillagers.api.events.Cancellable
isCancelled, setCancelledMethods 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
Playerinteractor
-
getInteractType
Get the type of interaction- Returns:
- the
InteractType
-