Class BlockDepositEvent
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.BlockDepositEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Fired when a block is about to be stored on a player's anvil (from conveyor delivery, steal deposit, or API).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBlockDepositEvent(@NotNull UUID ownerId, @NotNull String arenaId, @NotNull org.bukkit.Location anvilLocation, @NotNull BlockType blockType, @NotNull Cause cause) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.Location@NotNull String@NotNull BlockTypestatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerList@NotNull UUIDvoidsetBlockType(@NotNull BlockType blockType) Methods inherited from class CancellableStealABlockEvent
isCancelled, setCancelledMethods inherited from class StealABlockEvent
getCauseMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BlockDepositEvent
-
-
Method Details
-
getOwnerId
-
getArenaId
-
getAnvilLocation
@NotNull public @NotNull org.bukkit.Location getAnvilLocation() -
getBlockType
-
setBlockType
-
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()
-