PocketMine-MP 5.25.1 git-694aa17cc916a954b10fe12721c81b1dc73eecd5
Loading...
Searching...
No Matches
pocketmine\inventory\CreativeInventory Class Reference
+ Collaboration diagram for pocketmine\inventory\CreativeInventory:

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)
 

Detailed Description

Definition at line 38 of file CreativeInventory.php.

Member Function Documentation

◆ add()

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.

◆ 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 86 of file CreativeInventory.php.

◆ contains()

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

Definition at line 146 of file CreativeInventory.php.

◆ getAll()

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

Definition at line 95 of file CreativeInventory.php.

◆ getAllEntries()

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

Definition at line 103 of file CreativeInventory.php.

◆ getContentChangedCallbacks()

pocketmine\inventory\CreativeInventory::getContentChangedCallbacks ( )

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

Definition at line 151 of file CreativeInventory.php.

◆ getEntry()

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

Definition at line 111 of file CreativeInventory.php.

◆ getItem()

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

Definition at line 107 of file CreativeInventory.php.

◆ getItemIndex()

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

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


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