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 TypeMethodDescriptionbooleanhasBook()Gets the value of the 'has_book' property.voidsetHasBook(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, isReplaceable, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotateMethods inherited from interface org.bukkit.block.data.Directional
getFaces, getFacing, setFacingMethods 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
-