Class SecurityVillagersSelectEvent
java.lang.Object
org.bukkit.event.Event
com.alessiodp.securityvillagers.api.events.BukkitSecurityVillagersEvent
com.alessiodp.securityvillagers.api.events.bukkit.SecurityVillagersSelectEvent
- All Implemented Interfaces:
Cancellable,ISecurityVillagersSelectEvent,SecurityVillagersEvent
public class SecurityVillagersSelectEvent
extends BukkitSecurityVillagersEvent
implements ISecurityVillagersSelectEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionSecurityVillagersSelectEvent(org.bukkit.entity.Player player, org.bukkit.entity.Entity selectedEntity, org.bukkit.entity.Entity oldSelection) -
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.entity.EntityGet the previously selected entity@NotNull org.bukkit.entity.PlayerGet the player@NotNull org.bukkit.entity.EntityGet the selected entitybooleanIs the event cancelled?voidsetCancelled(boolean cancel)Set the event as cancelledMethods 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.interfaces.ISecurityVillagersSelectEvent
isUnselectionMethods inherited from interface com.alessiodp.securityvillagers.api.events.SecurityVillagersEvent
getApi, setApi
-
Constructor Details
-
SecurityVillagersSelectEvent
public SecurityVillagersSelectEvent(org.bukkit.entity.Player player, org.bukkit.entity.Entity selectedEntity, org.bukkit.entity.Entity oldSelection)
-
-
Method Details
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer()Description copied from interface:ISecurityVillagersSelectEventGet the player- Specified by:
getPlayerin interfaceISecurityVillagersSelectEvent- Returns:
- the
Player
-
getSelectedEntity
@NotNull public @NotNull org.bukkit.entity.Entity getSelectedEntity()Description copied from interface:ISecurityVillagersSelectEventGet the selected entity- Specified by:
getSelectedEntityin interfaceISecurityVillagersSelectEvent- Returns:
- the
Entity
-
getOldSelection
@Nullable public @Nullable org.bukkit.entity.Entity getOldSelection()Description copied from interface:ISecurityVillagersSelectEventGet the previously selected entity- Specified by:
getOldSelectionin interfaceISecurityVillagersSelectEvent- Returns:
- the
Entity
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableIs the event cancelled?- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif the event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)Description copied from interface:CancellableSet the event as cancelled- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueto cancel
-