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 SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructorsConstructorDescriptionBlockPistonExtendEvent(Block block, int length, BlockFace direction) Deprecated.BlockPistonExtendEvent(Block block, List<Block> blocks, BlockFace direction) 
- 
Method SummaryModifier and TypeMethodDescriptionGet an immutable list of the blocks which will be moved by the extending.static HandlerListintDeprecated.slime blocks make the value of this method inaccurate due to blocks being pushed at the sideMethods inherited from class org.bukkit.event.block.BlockPistonEventgetDirection, isCancelled, isSticky, setCancelledMethods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
BlockPistonExtendEvent@Deprecated(since="1.8") public BlockPistonExtendEvent(@NotNull Block block, int length, @NotNull BlockFace direction) Deprecated.
- 
BlockPistonExtendEvent
 
- 
- 
Method Details- 
getLengthDeprecated.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
 
- 
getBlocksGet an immutable list of the blocks which will be moved by the extending.- Returns:
- Immutable list of the moved blocks.
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-