Update to Minecraft 1.14-pre5

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-04-23 12:00:00 +10:00
parent 3c840f61b8
commit 30a442aef7
92 changed files with 2602 additions and 884 deletions
@@ -0,0 +1,45 @@
package org.bukkit.block;
import org.bukkit.inventory.BlockInventoryHolder;
import org.bukkit.inventory.Inventory;
import org.jetbrains.annotations.NotNull;
/**
* Represents a captured state of a lectern.
*/
public interface Lectern extends BlockState, BlockInventoryHolder {
/**
* Get the current lectern page.
*
* @return current page
*/
int getPage();
/**
* 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.
*
* @param page new page
*/
void setPage(int page);
/**
* @see Container#getInventory()
*
* @return inventory
*/
@NotNull
@Override
Inventory getInventory();
/**
* @see Container#getSnapshotInventory()
*
* @return snapshot inventory
*/
@NotNull
Inventory getSnapshotInventory();
}