Package org.bukkit.block.data.type
Interface Piston
- All Superinterfaces:
BlockData
,Cloneable
,Directional
'extended' denotes whether the piston head is currently extended or not.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the value of the 'extended' property.void
setExtended
(boolean extended) Sets the value of the 'extended' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getLightEmission, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
Methods inherited from interface org.bukkit.block.data.Directional
getFaces, getFacing, setFacing
-
Method Details
-
isExtended
boolean isExtended()Gets the value of the 'extended' property.- Returns:
- the 'extended' value
-
setExtended
void setExtended(boolean extended) Sets the value of the 'extended' property.- Parameters:
extended
- the new 'extended' value
-