summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2015-01-05 09:59:20 +1100
committermd_5 <git@md-5.net>2015-01-05 09:59:20 +1100
commita2aa082c09ebd0f2372d2f920310a37f95513b0a (patch)
tree6db89a47913bc541a42182c546ec26cf173ce70c /src/main
parentf1ce6715f19a9600d7dbe9b6ad582b44b8338817 (diff)
downloadbukkit-a2aa082c09ebd0f2372d2f920310a37f95513b0a.tar
bukkit-a2aa082c09ebd0f2372d2f920310a37f95513b0a.tar.gz
bukkit-a2aa082c09ebd0f2372d2f920310a37f95513b0a.tar.lz
bukkit-a2aa082c09ebd0f2372d2f920310a37f95513b0a.tar.xz
bukkit-a2aa082c09ebd0f2372d2f920310a37f95513b0a.zip
SPIGOT-323: Enchanting tables can no longer be force opened.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/entity/HumanEntity.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/HumanEntity.java b/src/main/java/org/bukkit/entity/HumanEntity.java
index 3f8646dd..edcdce32 100644
--- a/src/main/java/org/bukkit/entity/HumanEntity.java
+++ b/src/main/java/org/bukkit/entity/HumanEntity.java
@@ -82,11 +82,25 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, Permissible, Inv
*
* @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.
+ *
+ * @param location The location to attach it to. If null, the player's
+ * location is used.
* @param force If false, and there is no enchanting table at the
* 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);
/**