PocketMine-MP 5.23.3 git-4a4572131f27ab967701ceaaf2020cfbe26e375c
|
Public Member Functions | |
add (Item $item) | |
clear () | |
contains (Item $item) | |
getAll () | |
getContentChangedCallbacks () | |
getItem (int $index) | |
getItemIndex (Item $item) | |
remove (Item $item) | |
Definition at line 35 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::add | ( | Item | $item | ) |
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 99 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 68 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::contains | ( | Item | $item | ) |
Definition at line 116 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getAll | ( | ) |
Definition at line 77 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getContentChangedCallbacks | ( | ) |
@phpstan-return ObjectSet<\Closure() : void>
Definition at line 121 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getItem | ( | int | $index | ) |
Definition at line 81 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getItemIndex | ( | Item | $item | ) |
Definition at line 85 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 108 of file CreativeInventory.php.