Package org.bukkit.block.data.type
Interface Lectern
- All Superinterfaces:
BlockData
,Cloneable
,Directional
,Powerable
'has_book' is a quick flag to check whether this lectern has a book inside
it.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasBook()
Gets the value of the 'has_book' property.void
setHasBook
(boolean hasBook) Sets the value of the 'has_book' 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
Methods inherited from interface org.bukkit.block.data.Directional
getFaces, getFacing, setFacing
Methods inherited from interface org.bukkit.block.data.Powerable
isPowered, setPowered
-
Method Details
-
hasBook
boolean hasBook()Gets the value of the 'has_book' property.- Returns:
- the 'has_book' value
-
setHasBook
void setHasBook(boolean hasBook) Sets the value of the 'has_book' property.- Parameters:
hasBook
- the new 'has_book' value
-