PocketMine-MP 5.11.1 git-db894e3a4a5bb9a80b3ac07ac91f58bdaf15176a
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 95 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 65 of file CreativeInventory.php.

◆ contains()

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

Definition at line 112 of file CreativeInventory.php.

◆ getAll()

pocketmine\inventory\CreativeInventory::getAll ( )
Returns
Item[]

Definition at line 73 of file CreativeInventory.php.

◆ getContentChangedCallbacks()

pocketmine\inventory\CreativeInventory::getContentChangedCallbacks ( )

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

Definition at line 117 of file CreativeInventory.php.

◆ getItem()

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

Definition at line 77 of file CreativeInventory.php.

◆ getItemIndex()

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

Definition at line 81 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 104 of file CreativeInventory.php.


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