PocketMine-MP 5.41.1 git-dec84fe67dc3319e33f5066e5d03b16f00f2ff4c
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\command\CommandSoftEnum Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\command\CommandSoftEnum:

Public Member Functions

 __construct (private string $name, private array $values)
 
 getName ()
 
 getValues ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Detailed Description

Definition at line 23 of file CommandSoftEnum.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\command\CommandSoftEnum::__construct ( private string $name,
private array $values )
Parameters
string[]$values@phpstan-param list<string> $values

Definition at line 29 of file CommandSoftEnum.php.

Member Function Documentation

◆ getName()

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

Definition at line 40 of file CommandSoftEnum.php.

◆ getValues()

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

Definition at line 46 of file CommandSoftEnum.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\command\CommandSoftEnum::read ( ByteBufferReader $in)
static

Definition at line 48 of file CommandSoftEnum.php.

◆ write()

pocketmine\network\mcpe\protocol\types\command\CommandSoftEnum::write ( ByteBufferWriter $out)

Definition at line 59 of file CommandSoftEnum.php.


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