diff options
author | md_5 <git@md-5.net> | 2015-01-05 09:59:20 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2015-01-05 09:59:20 +1100 |
commit | a2aa082c09ebd0f2372d2f920310a37f95513b0a (patch) | |
tree | 6db89a47913bc541a42182c546ec26cf173ce70c | |
parent | f1ce6715f19a9600d7dbe9b6ad582b44b8338817 (diff) | |
download | bukkit-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.
-rw-r--r-- | src/main/java/org/bukkit/entity/HumanEntity.java | 14 |
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); /** |