From 5d436a06ece35a04fbc48122c75070f1ba6d17f2 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 12 Aug 2017 14:10:47 +0100 Subject: [PATCH] Added a method to get player cursor inventory --- src/pocketmine/Player.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index dc0b7bcba2..3adcd3502a 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -3802,6 +3802,10 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{ //TODO: more windows } + public function getCursorInventory() : PlayerCursorInventory{ + return $this->cursorInventory; + } + /** * @param Inventory $inventory *