From ce85765d6a0d24895f1ce88e816c1f2954c26565 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 5 Jan 2015 09:59:20 +1100 Subject: [PATCH] SPIGOT-323: Enchanting tables can no longer be force opened. By: md_5 --- .../main/java/org/bukkit/entity/HumanEntity.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java index 3f8646ddcb..edcdce3283 100644 --- a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java @@ -76,6 +76,18 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv */ public InventoryView openWorkbench(Location location, boolean force); + /** + * Opens an empty enchanting inventory window with the player's inventory + * on the bottom. + * + * @param location The location to attach it to. If null, the player's + * location is used. + * @return The newly opened inventory view, or null if it could not be + * opened. + * @deprecated You cannot force open an enchanting table. + */ + public InventoryView openEnchanting(Location location); + /** * Opens an empty enchanting inventory window with the player's inventory * on the bottom. @@ -86,7 +98,9 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv * location, no inventory will be opened and null will be returned. * @return The newly opened inventory view, or null if it could not be * opened. + * @deprecated You cannot force open an enchanting table. */ + @Deprecated public InventoryView openEnchanting(Location location, boolean force); /**