From 2eb498b84c91c2f4151b4af6bc47c194700eed12 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 26 May 2019 19:45:47 +0100 Subject: [PATCH] ItemFactory: add getAllRegistered() --- src/pocketmine/item/ItemFactory.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pocketmine/item/ItemFactory.php b/src/pocketmine/item/ItemFactory.php index 5ba12a990..a6d5ae2bd 100644 --- a/src/pocketmine/item/ItemFactory.php +++ b/src/pocketmine/item/ItemFactory.php @@ -485,4 +485,8 @@ class ItemFactory{ } return (($id & 0xffff) << 16) | ($variant & 0xffff); } + + public static function getAllRegistered() : array{ + return self::$list; + } }