Class ConveyorBlockSpawnEvent
java.lang.Object
org.bukkit.event.Event
dev.yowsef.stealablock.api.event.StealABlockEvent
dev.yowsef.stealablock.api.event.CancellableStealABlockEvent
dev.yowsef.stealablock.api.event.conveyor.ConveyorBlockSpawnEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionConveyorBlockSpawnEvent(@NotNull String arenaId, @NotNull BlockType blockType, boolean mysteryBlock) -
Method Summary
Modifier and TypeMethodDescription@NotNull String@NotNull BlockTypestatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListbooleanvoidsetBlockType(@NotNull BlockType blockType) voidsetMysteryBlock(boolean mysteryBlock) Methods inherited from class CancellableStealABlockEvent
isCancelled, setCancelledMethods inherited from class StealABlockEvent
getCauseMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ConveyorBlockSpawnEvent
-
-
Method Details
-
getArenaId
-
getBlockType
-
setBlockType
-
isMysteryBlock
public boolean isMysteryBlock() -
setMysteryBlock
public void setMysteryBlock(boolean mysteryBlock) -
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()
-