Package io.papermc.paper.block
Interface MovingPiston
- All Superinterfaces:
- BlockState,- Metadatable,- PersistentDataHolder,- TileState
- 
Method SummaryModifier and TypeMethodDescriptionThe direction that the current moving piston is pushing/pulling a block in.Gets the block that is being pushedbooleanGets if the piston is extending or not.booleanReturns if this moving piston represents the main piston head from the original piston.Methods inherited from interface org.bukkit.block.BlockStategetBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.block.TileStategetPersistentDataContainer, isSnapshot
- 
Method Details- 
getMovingBlockGets the block that is being pushed- Returns:
- the pushed block
 
- 
getDirectionThe direction that the current moving piston is pushing/pulling a block in.- Returns:
- the direction
 
- 
isExtendingboolean isExtending()Gets if the piston is extending or not. Returns false if the piston is retracting.- Returns:
- is extending or not
 
- 
isPistonHeadboolean isPistonHead()Returns if this moving piston represents the main piston head from the original piston.- Returns:
- is the piston head or not
 
 
-