Loading [MathJax]/jax/input/TeX/config.js
PocketMine-MP 5.23.3 git-4a4572131f27ab967701ceaaf2020cfbe26e375c
All Classes Namespaces Functions Variables Enumerations Enumerator Pages
pocketmine\inventory\CreativeInventory Class Reference
+ Collaboration diagram for pocketmine\inventory\CreativeInventory:

Public Member Functions

 add (Item $item)
 
 clear ()
 
 contains (Item $item)
 
 getAll ()
 
 getContentChangedCallbacks ()
 
 getItem (int $index)
 
 getItemIndex (Item $item)
 
 remove (Item $item)
 

Detailed Description

Definition at line 35 of file CreativeInventory.php.

Member Function Documentation

◆ add()

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.

◆ clear()

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.

◆ contains()

pocketmine\inventory\CreativeInventory::contains ( Item $item)

Definition at line 116 of file CreativeInventory.php.

◆ getAll()

pocketmine\inventory\CreativeInventory::getAll ( )
Returns
Item[] @phpstan-return array<int, Item>

Definition at line 77 of file CreativeInventory.php.

◆ getContentChangedCallbacks()

pocketmine\inventory\CreativeInventory::getContentChangedCallbacks ( )

@phpstan-return ObjectSet<\Closure() : void>

Definition at line 121 of file CreativeInventory.php.

◆ getItem()

pocketmine\inventory\CreativeInventory::getItem ( int $index)

Definition at line 81 of file CreativeInventory.php.

◆ getItemIndex()

pocketmine\inventory\CreativeInventory::getItemIndex ( Item $item)

Definition at line 85 of file CreativeInventory.php.

◆ remove()

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.


The documentation for this class was generated from the following file: