Class BlockPistonRetractEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockPistonEvent
org.bukkit.event.block.BlockPistonRetractEvent
- All Implemented Interfaces:
Cancellable
Called when a piston retracts
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class BlockEvent
block -
Constructor Summary
ConstructorsConstructorDescriptionBlockPistonRetractEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction) -
Method Summary
Modifier and TypeMethodDescriptionGet an immutable list of the blocks which will be moved by the retracting.static @NotNull HandlerList@NotNull HandlerList@NotNull LocationDeprecated.Methods inherited from class BlockPistonEvent
getDirection, isCancelled, isSticky, setCancelledMethods inherited from class BlockEvent
getBlockMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BlockPistonRetractEvent
-
-
Method Details
-
getRetractLocation
Deprecated.Gets the location where the possible moving block might be if the retracting piston is sticky.- Returns:
- The possible location of the possibly moving block.
- Since:
- 1.0.0
-
getBlocks
-
getHandlers
- Specified by:
getHandlersin classEvent- Since:
- 1.1.0
-
getHandlerList
- Since:
- 1.1.0
-