Class ConveyorBlockSpawnEvent

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

public final class ConveyorBlockSpawnEvent extends CancellableStealABlockEvent
Fired when a block is about to spawn on an arena conveyor. Addons may replace the BlockType, toggle mystery block status, or cancel the spawn.
  • Constructor Details

    • ConveyorBlockSpawnEvent

      public ConveyorBlockSpawnEvent(@NotNull @NotNull String arenaId, @NotNull @NotNull BlockType blockType, boolean mysteryBlock)
  • Method Details

    • getArenaId

      @NotNull public @NotNull String getArenaId()
    • getBlockType

      @NotNull public @NotNull BlockType getBlockType()
    • setBlockType

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

      public boolean isMysteryBlock()
    • setMysteryBlock

      public void setMysteryBlock(boolean mysteryBlock)
    • 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()