PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
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 95 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 65 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::contains | ( | Item | $item | ) |
Definition at line 112 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getAll | ( | ) |
Definition at line 73 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getContentChangedCallbacks | ( | ) |
@phpstan-return ObjectSet<\Closure() : void>
Definition at line 117 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getItem | ( | int | $index | ) |
Definition at line 77 of file CreativeInventory.php.
pocketmine\inventory\CreativeInventory::getItemIndex | ( | Item | $item | ) |
Definition at line 81 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 104 of file CreativeInventory.php.