PocketMine-MP 5.27.2 git-d86943fa8c6384be3e2c1901ebf94f584b27e784
Loading...
Searching...
No Matches
pocketmine\inventory\CreativeGroup Class Reference
+ Collaboration diagram for pocketmine\inventory\CreativeGroup:

Public Member Functions

 __construct (private readonly Translatable|string $name, private readonly Item $icon)
 
 getIcon ()
 
 getName ()
 

Detailed Description

Info for an item group in the creative inventory menu.

Definition at line 33 of file CreativeGroup.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\inventory\CreativeGroup::__construct ( private readonly Translatable|string $name,
private readonly Item $icon )
Parameters
Translatable | string$nameTooltip shown to the player on hover
Item$iconItem shown when the group is collapsed

Definition at line 38 of file CreativeGroup.php.

Member Function Documentation

◆ getIcon()

pocketmine\inventory\CreativeGroup::getIcon ( )

Definition at line 50 of file CreativeGroup.php.

◆ getName()

pocketmine\inventory\CreativeGroup::getName ( )

Definition at line 48 of file CreativeGroup.php.


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