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
Event that is triggered before a new sort type is set.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerAuctionSortEvent
(APlayer player, Comparator<Auction> comparator, AuctionSortType sortType) This event is triggered before a menu is opened. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
void
setComparator
(Comparator<Auction> comparator) Methods inherited from class com.olziedev.playerauctions.api.events.AuctionEvent
acceptCallback, callEvent, getPlayerAuctionsAPI, isCancelled, isWaitingForCallback, postEvent, postEvent, setCancelled, setEventCallback, waitForCallback
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getPlayer
- Returns:
- The player that is opening the menu.
-
getComparator
- Returns:
- The type of sorter that is being used.
-
setComparator
- Parameters:
comparator
- The new type of sorter that is being used.
-
getAuctionSortType
- Returns:
- The new sort type.
-