From 7b32aee7682a5c89bf9cb5be805a8b9b6393c3b6 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 13 Feb 2011 00:22:00 -0500 Subject: [PATCH] Exposes the recently added updateInventory method. We've decided to expose updateInventory as a temporary work-around for the inventory not updating issue we're aware of. The reasoning behind this is that addressing it properly will take some time and work and as this is clearly a roadblock for some plugin authors, the delay is not really acceptable. By: EvilSeph --- paper-api/src/main/java/org/bukkit/entity/Player.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index 8a82677448..2c861c7b0e 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -76,4 +76,13 @@ public interface Player extends HumanEntity, CommandSender { * @param sneak true if player should appear sneaking */ public void setSneaking(boolean sneak); + + /** + * Forces an update of the player's entire inventory. + * + * @return + * + * @deprecated This method should not be relied upon as it is a temporary work-around for a larger, more complicated issue. + */ + public void updateInventory(); }