Cancellable
public class BlockPistonRetractEvent extends BlockPistonEvent
Event.Result
block
Constructor | Description |
---|---|
BlockPistonRetractEvent(@NotNull Block block,
@NotNull List<Block> blocks,
@NotNull BlockFace direction) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull List<Block> |
getBlocks() |
Get an immutable list of the blocks which will be moved by the
extending.
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
@NotNull Location |
getRetractLocation() |
Deprecated.
|
getBlock
getDirection, isCancelled, isSticky, setCancelled
getEventName, isAsynchronous
@Deprecated @NotNull public @NotNull Location getRetractLocation()
@NotNull public @NotNull List<Block> getBlocks()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.