PocketMine-MP 5.25.1 git-694aa17cc916a954b10fe12721c81b1dc73eecd5
|
Public Member Functions | |
add (Item $item, CreativeCategory $category=CreativeCategory::ITEMS, ?CreativeGroup $group=null) | |
clear () | |
contains (Item $item) | |
getAll () | |
getAllEntries () | |
getContentChangedCallbacks () | |
getEntry (int $index) | |
getItem (int $index) | |
getItemIndex (Item $item) | |
remove (Item $item) | |
Definition at line 38 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::add | ( | Item | $item, |
CreativeCategory | $category = CreativeCategory::ITEMS, | ||
?CreativeGroup | $group = null ) |
Adds an item to the creative menu. Note: Players who are already online when this is called will not see this change.
Definition at line 129 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::clear | ( | ) |
Removes all previously added items from the creative menu. Note: Players who are already online when this is called will not see this change.
Definition at line 86 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::contains | ( | Item | $item | ) |
Definition at line 146 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getAll | ( | ) |
Definition at line 95 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getAllEntries | ( | ) |
Definition at line 103 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getContentChangedCallbacks | ( | ) |
@phpstan-return ObjectSet<\Closure() : void>
Definition at line 151 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getEntry | ( | int | $index | ) |
Definition at line 111 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getItem | ( | int | $index | ) |
Definition at line 107 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getItemIndex | ( | Item | $item | ) |
Definition at line 115 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::remove | ( | Item | $item | ) |
Removes an item from the creative menu. Note: Players who are already online when this is called will not see this change.
Definition at line 138 of file CreativeInventory.php.