Package org.bukkit.block
Interface Lectern
- All Superinterfaces:
BlockInventoryHolder,BlockState,InventoryHolder,Metadatable,PersistentDataHolder,PersistentDataViewHolder,TileState,TileStateInventoryHolder
Represents a captured state of a lectern.
-
Method Summary
Methods inherited from interface org.bukkit.inventory.BlockInventoryHolder
getBlockMethods inherited from interface org.bukkit.block.BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getDrops, getDrops, getDrops, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isCollidable, isPlaced, isSuffocating, setBlockData, setData, setRawData, setType, update, update, updateMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPdcMethods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer, isSnapshotMethods inherited from interface io.papermc.paper.block.TileStateInventoryHolder
getInventory, getSnapshotInventory
-
Method Details
-
getPage
int getPage()Get the current lectern page.- Returns:
- current page
-
setPage
void 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
-