mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 14:33:09 +01:00
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 <evilseph@unaligned.org>
This commit is contained in:
parent
66761d2d4d
commit
7b32aee768
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue