PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\network\mcpe\protocol\types\command\CommandEnum Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\command\CommandEnum:

Public Member Functions

 __construct (private string $enumName, private array $enumValues, private bool $isSoft=false)
 
 getName ()
 
 getValues ()
 
 isSoft ()
 

Detailed Description

Definition at line 17 of file CommandEnum.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\command\CommandEnum::__construct ( private string  $enumName,
private array  $enumValues,
private bool  $isSoft = false 
)
Parameters
string[]$enumValues
bool$isSoftWhether the enum is dynamic, i.e. can be updated during the game session

@phpstan-param list<string> $enumValues

Definition at line 24 of file CommandEnum.php.

Member Function Documentation

◆ getName()

pocketmine\network\mcpe\protocol\types\command\CommandEnum::getName ( )

Definition at line 30 of file CommandEnum.php.

◆ getValues()

pocketmine\network\mcpe\protocol\types\command\CommandEnum::getValues ( )
Returns
string[] @phpstan-return list<string>

Definition at line 38 of file CommandEnum.php.

Referenced by pocketmine\network\mcpe\protocol\types\command\CommandEnumConstraint\__construct().

+ Here is the caller graph for this function:

◆ isSoft()

pocketmine\network\mcpe\protocol\types\command\CommandEnum::isSoft ( )
Returns
bool Whether the enum is dynamic, i.e. can be updated during the game session

Definition at line 45 of file CommandEnum.php.


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