Package org.bukkit.block.data
Interface Rotatable
- All Known Subinterfaces:
HangingSign
,Sign
,Skull
'rotation' represents the current rotation of this block.
-
Method Summary
Modifier and TypeMethodDescription@NotNull BlockFace
Gets the value of the 'rotation' property.void
setRotation
(@NotNull BlockFace rotation) Sets the value of the 'rotation' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
-
Method Details
-
getRotation
Gets the value of the 'rotation' property.- Returns:
- the 'rotation' value
-
setRotation
Sets the value of the 'rotation' property.- Parameters:
rotation
- the new 'rotation' value
-