Package org.bukkit.event.block
Class BlockPistonExtendEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockPistonEvent
org.bukkit.event.block.BlockPistonExtendEvent
- All Implemented Interfaces:
Cancellable
Called when a piston extends
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.block.BlockEvent
block
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet an immutable list of the blocks which will be moved by the extending.static @NotNull HandlerList
int
Deprecated.slime blocks make the value of this method inaccurate due to blocks being pushed at the sideMethods inherited from class org.bukkit.event.block.BlockPistonEvent
getDirection, isCancelled, isSticky, setCancelled
Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
Method Details
-
getLength
Deprecated.slime blocks make the value of this method inaccurate due to blocks being pushed at the sideGet the amount of blocks which will be moved while extending.- Returns:
- the amount of moving blocks
-
getBlocks
Get an immutable list of the blocks which will be moved by the extending.- Returns:
- Immutable list of the moved blocks.
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-