Class BlockDepositEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class BlockDepositEvent extends CancellableStealABlockEvent
Fired when a block is about to be stored on a player's anvil (from conveyor delivery, steal deposit, or API).
  • Constructor Details

    • BlockDepositEvent

      public BlockDepositEvent(@NotNull @NotNull UUID ownerId, @NotNull @NotNull String arenaId, @NotNull @NotNull org.bukkit.Location anvilLocation, @NotNull @NotNull BlockType blockType, @NotNull @NotNull Cause cause)
  • Method Details

    • getOwnerId

      @NotNull public @NotNull UUID getOwnerId()
    • getArenaId

      @NotNull public @NotNull String getArenaId()
    • getAnvilLocation

      @NotNull public @NotNull org.bukkit.Location getAnvilLocation()
    • getBlockType

      @NotNull public @NotNull BlockType getBlockType()
    • setBlockType

      public void setBlockType(@NotNull @NotNull BlockType blockType)
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()