PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\command\ConstrainedEnumValue Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\command\ConstrainedEnumValue:

Public Member Functions

 __construct (private string $value, private array $constraints)
 
 getConstraints ()
 
 getValue ()
 

Public Attributes

const REQUIRES_ALLOW_ALIASES = 1 << 3
 
const REQUIRES_CHEATS_ENABLED = 1 << 0
 
const REQUIRES_ELEVATED_PERMISSIONS = 1 << 1
 
const REQUIRES_HOST_PERMISSIONS = 1 << 2
 

Detailed Description

Definition at line 17 of file ConstrainedEnumValue.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\command\ConstrainedEnumValue::__construct ( private string $value,
private array $constraints )
Parameters
int[]$constraints@phpstan-param list<int> $constraints

Definition at line 27 of file ConstrainedEnumValue.php.

Member Function Documentation

◆ getConstraints()

pocketmine\network\mcpe\protocol\types\command\ConstrainedEnumValue::getConstraints ( )
Returns
int[] @phpstan-return list<int>

Definition at line 44 of file ConstrainedEnumValue.php.

◆ getValue()

pocketmine\network\mcpe\protocol\types\command\ConstrainedEnumValue::getValue ( )

Definition at line 38 of file ConstrainedEnumValue.php.

Member Data Documentation

◆ REQUIRES_ALLOW_ALIASES

const pocketmine\network\mcpe\protocol\types\command\ConstrainedEnumValue::REQUIRES_ALLOW_ALIASES = 1 << 3

Definition at line 21 of file ConstrainedEnumValue.php.

◆ REQUIRES_CHEATS_ENABLED

const pocketmine\network\mcpe\protocol\types\command\ConstrainedEnumValue::REQUIRES_CHEATS_ENABLED = 1 << 0

Definition at line 18 of file ConstrainedEnumValue.php.

◆ REQUIRES_ELEVATED_PERMISSIONS

const pocketmine\network\mcpe\protocol\types\command\ConstrainedEnumValue::REQUIRES_ELEVATED_PERMISSIONS = 1 << 1

Definition at line 19 of file ConstrainedEnumValue.php.

◆ REQUIRES_HOST_PERMISSIONS

const pocketmine\network\mcpe\protocol\types\command\ConstrainedEnumValue::REQUIRES_HOST_PERMISSIONS = 1 << 2

Definition at line 20 of file ConstrainedEnumValue.php.


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