Class BlockSellEvent
java.lang.Object
org.bukkit.event.Event
dev.yowsef.stealablock.api.event.StealABlockEvent
dev.yowsef.stealablock.api.event.CancellableStealABlockEvent
dev.yowsef.stealablock.api.event.storage.BlockSellEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Fired when a player sells one of their stored blocks.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBlockSellEvent(@NotNull org.bukkit.entity.Player player, @NotNull StoredBlockView storedBlock, double totalPayout, @NotNull Cause cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.entity.Player@NotNull StoredBlockViewdoublevoidsetTotalPayout(double totalPayout) Methods inherited from class CancellableStealABlockEvent
isCancelled, setCancelledMethods inherited from class StealABlockEvent
getCauseMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BlockSellEvent
public BlockSellEvent(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull StoredBlockView storedBlock, double totalPayout, @NotNull @NotNull Cause cause)
-
-
Method Details
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer() -
getStoredBlock
-
getTotalPayout
public double getTotalPayout() -
setTotalPayout
public void setTotalPayout(double totalPayout) -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-