Class PlayerAuctionSortEvent

java.lang.Object
org.bukkit.event.Event
com.olziedev.playerauctions.api.events.AuctionEvent
com.olziedev.playerauctions.api.events.menu.PlayerAuctionSortEvent
All Implemented Interfaces:
Cancellable

public class PlayerAuctionSortEvent extends AuctionEvent
Event that is triggered before a new sort type is set.
  • Constructor Details

    • PlayerAuctionSortEvent

      public PlayerAuctionSortEvent(APlayer player, Comparator<Auction> comparator, AuctionSortType sortType)
      This event is triggered before a menu is opened.
      Parameters:
      player - The player that is opening the menu.
      comparator - The type of sorter that is being used.
      sortType - The new sort type.
  • Method Details

    • getHandlerList

      public static HandlerList getHandlerList()
    • getHandlers

      @Nonnull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getPlayer

      public APlayer getPlayer()
      Returns:
      The player that is opening the menu.
    • getComparator

      public Comparator<Auction> getComparator()
      Returns:
      The type of sorter that is being used.
    • setComparator

      public void setComparator(Comparator<Auction> comparator)
      Parameters:
      comparator - The new type of sorter that is being used.
    • getAuctionSortType

      public AuctionSortType getAuctionSortType()
      Returns:
      The new sort type.