Class XPrisonAutoSellEvent
java.lang.Object
org.bukkit.event.Event
dev.drawethree.xprison.api.shared.events.XPrisonEvent
dev.drawethree.xprison.api.shared.events.player.XPrisonPlayerEvent
dev.drawethree.xprison.api.autosell.events.XPrisonAutoSellEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class XPrisonAutoSellEvent
extends XPrisonPlayerEvent
implements org.bukkit.event.Cancellable
Event called when mined blocks are automatically sold.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionXPrisonAutoSellEvent
(org.bukkit.entity.Player player, SellRegion reg, Map<AutoSellItemStack, Double> itemsToSell) Constructs a new auto-sell event. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Returns the list of registered event handlers.org.bukkit.event.HandlerList
Returns the list of registered event handlers.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
XPrisonAutoSellEvent
public XPrisonAutoSellEvent(org.bukkit.entity.Player player, SellRegion reg, Map<AutoSellItemStack, Double> itemsToSell) Constructs a new auto-sell event.- Parameters:
player
- The player who mined the blocks and triggered auto-sellreg
- The sell region where the blocks were mineditemsToSell
- A map of items to be sold with their respective prices
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Returns the list of registered event handlers.- Returns:
- HandlerList for this event
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()Returns the list of registered event handlers.- Specified by:
getHandlers
in classorg.bukkit.event.Event
- Returns:
- HandlerList for this event
-