PocketMine-MP 5.16.1 git-585aee9386a787c95e73dd0a05ffca8329606b68
pocketmine\network\mcpe\protocol\types\command\CommandEnumConstraint Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\command\CommandEnumConstraint:

Public Member Functions

 __construct (private CommandEnum $enum, private int $valueOffset, private array $constraints)
 
 getAffectedValue ()
 
 getConstraints ()
 
 getEnum ()
 
 getValueOffset ()
 

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 CommandEnumConstraint.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\command\CommandEnumConstraint::__construct ( private CommandEnum  $enum,
private int  $valueOffset,
private array  $constraints 
)
Parameters
int[]$constraints

Definition at line 26 of file CommandEnumConstraint.php.

References pocketmine\network\mcpe\protocol\types\command\CommandEnum\getValues().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAffectedValue()

pocketmine\network\mcpe\protocol\types\command\CommandEnumConstraint::getAffectedValue ( )

Definition at line 45 of file CommandEnumConstraint.php.

◆ getConstraints()

pocketmine\network\mcpe\protocol\types\command\CommandEnumConstraint::getConstraints ( )
Returns
int[]

Definition at line 52 of file CommandEnumConstraint.php.

◆ getEnum()

pocketmine\network\mcpe\protocol\types\command\CommandEnumConstraint::getEnum ( )

Definition at line 37 of file CommandEnumConstraint.php.

◆ getValueOffset()

pocketmine\network\mcpe\protocol\types\command\CommandEnumConstraint::getValueOffset ( )

Definition at line 41 of file CommandEnumConstraint.php.

Member Data Documentation

◆ REQUIRES_ALLOW_ALIASES

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

Definition at line 21 of file CommandEnumConstraint.php.

◆ REQUIRES_CHEATS_ENABLED

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

Definition at line 18 of file CommandEnumConstraint.php.

◆ REQUIRES_ELEVATED_PERMISSIONS

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

Definition at line 19 of file CommandEnumConstraint.php.

◆ REQUIRES_HOST_PERMISSIONS

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

Definition at line 20 of file CommandEnumConstraint.php.


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