Package org.bukkit.block
Interface Lectern
-
- All Superinterfaces:
BlockInventoryHolder
,BlockState
,InventoryHolder
,Metadatable
,PersistentDataHolder
,TileState
public interface Lectern extends TileState, BlockInventoryHolder
Represents a captured state of a lectern.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Inventory
getInventory()
Get the object's inventory.int
getPage()
Get the current lectern page.Inventory
getSnapshotInventory()
void
setPage(int page)
Set the current lectern page.-
Methods inherited from interface org.bukkit.inventory.BlockInventoryHolder
getBlock
-
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
-
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Methods inherited from interface org.bukkit.block.TileState
getPersistentDataContainer
-
-
-
-
Method Detail
-
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
-
getInventory
@NotNull Inventory getInventory()
Description copied from interface:InventoryHolder
Get the object's inventory.- Specified by:
getInventory
in interfaceInventoryHolder
- Returns:
- inventory
- See Also:
Container.getInventory()
-
getSnapshotInventory
@NotNull Inventory getSnapshotInventory()
- Returns:
- snapshot inventory
- See Also:
Container.getSnapshotInventory()
-
-