PocketMine-MP 5.16.1 git-585aee9386a787c95e73dd0a05ffca8329606b68
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 
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 ( )
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 ( )
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: