Interface ISecurityVillagersSelectEvent

All Superinterfaces:
Cancellable, SecurityVillagersEvent
All Known Implementing Classes:
SecurityVillagersSelectEvent

public interface ISecurityVillagersSelectEvent extends SecurityVillagersEvent, Cancellable
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.bukkit.entity.Entity
    Get the previously selected entity
    @NotNull org.bukkit.entity.Player
    Get the player
    @NotNull org.bukkit.entity.Entity
    Get the selected entity
    default boolean
    Check if the player is unselecting the entity

    Methods 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

    • getPlayer

      @NotNull @NotNull org.bukkit.entity.Player getPlayer()
      Get the player
      Returns:
      the Player
    • getSelectedEntity

      @NotNull @NotNull org.bukkit.entity.Entity getSelectedEntity()
      Get the selected entity
      Returns:
      the Entity
    • getOldSelection

      @Nullable @Nullable org.bukkit.entity.Entity getOldSelection()
      Get the previously selected entity
      Returns:
      the Entity
    • isUnselection

      default boolean isUnselection()
      Check if the player is unselecting the entity
      Returns:
      true if unselecting