From 7285d5d822271005d27fdbfe32d79fbdcfae75bc Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 8 May 2019 00:01:01 +0200 Subject: [PATCH] SPIGOT-4892: Allow to set the currently viewed page of a book on a lectern inventory By: Brokkonaut --- .../src/main/java/org/bukkit/inventory/InventoryView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/inventory/InventoryView.java b/paper-api/src/main/java/org/bukkit/inventory/InventoryView.java index d4135976bc..f5fb03f1ee 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/InventoryView.java +++ b/paper-api/src/main/java/org/bukkit/inventory/InventoryView.java @@ -98,7 +98,11 @@ public abstract class InventoryView { /** * The repair's cost in xp levels */ - REPAIR_COST(0, InventoryType.ANVIL); + REPAIR_COST(0, InventoryType.ANVIL), + /** + * The lectern's current open book page + */ + BOOK_PAGE(0, InventoryType.LECTERN); int id; InventoryType style; private Property(int id, /*@NotNull*/ InventoryType appliesTo) {