Package org.bukkit.block
Interface Lectern
- All Superinterfaces:
- BlockInventoryHolder,- BlockState,- InventoryHolder,- Metadatable,- PersistentDataHolder,- TileState
Represents a captured state of a lectern.
- 
Method SummaryMethods inherited from interface org.bukkit.inventory.BlockInventoryHoldergetBlockMethods inherited from interface org.bukkit.block.BlockStatecopy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, 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
- 
Method Details- 
getPageint getPage()Get the current lectern page.- Returns:
- current page
 
- 
setPagevoid setPage(int page) Set the current lectern page. If the page is greater than the number of pages of the book currently in the inventory, then behavior is undefined.- Parameters:
- page- new page
 
- 
getInventoryDescription copied from interface:InventoryHolderGet the object's inventory.- Specified by:
- getInventoryin interface- InventoryHolder
- Returns:
- inventory
- See Also:
 
- 
getSnapshotInventory- Returns:
- snapshot inventory
- See Also:
 
 
-