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

Static Public Member Functions

static enum (string $name, CommandEnum $enum, int $flags, bool $optional=false)
static postfixed (string $name, string $postfix, int $flags=0, bool $optional=false)
static standard (string $name, int $type, int $flags=0, bool $optional=false)

Public Attributes

CommandEnum $enum = null
int $flags = 0
bool $isOptional
string $paramName
int $paramType
string $postfix = null

Detailed Description

Definition at line 19 of file CommandParameter.php.

Member Function Documentation

◆ enum()

static pocketmine\network\mcpe\protocol\types\command\CommandParameter::enum ( string  $name,
CommandEnum  $enum,
int  $flags,
bool  $optional = false 

Definition at line 49 of file CommandParameter.php.

◆ postfixed()

static pocketmine\network\mcpe\protocol\types\command\CommandParameter::postfixed ( string  $name,
string  $postfix,
int  $flags = 0,
bool  $optional = false 

Definition at line 43 of file CommandParameter.php.

◆ standard()

static pocketmine\network\mcpe\protocol\types\command\CommandParameter::standard ( string  $name,
int  $type,
int  $flags = 0,
bool  $optional = false 

Definition at line 39 of file CommandParameter.php.

Member Data Documentation

◆ $enum

CommandEnum pocketmine\network\mcpe\protocol\types\command\CommandParameter::$enum = null

Definition at line 27 of file CommandParameter.php.

◆ $flags

int pocketmine\network\mcpe\protocol\types\command\CommandParameter::$flags = 0

Definition at line 26 of file CommandParameter.php.

◆ $isOptional

bool pocketmine\network\mcpe\protocol\types\command\CommandParameter::$isOptional

Definition at line 25 of file CommandParameter.php.

◆ $paramName

string pocketmine\network\mcpe\protocol\types\command\CommandParameter::$paramName

Definition at line 23 of file CommandParameter.php.

◆ $paramType

int pocketmine\network\mcpe\protocol\types\command\CommandParameter::$paramType

Definition at line 24 of file CommandParameter.php.

◆ $postfix

string pocketmine\network\mcpe\protocol\types\command\CommandParameter::$postfix = null

Definition at line 28 of file CommandParameter.php.


const pocketmine\network\mcpe\protocol\types\command\CommandParameter::FLAG_FORCE_COLLAPSE_ENUM = 0x1

Definition at line 20 of file CommandParameter.php.


const pocketmine\network\mcpe\protocol\types\command\CommandParameter::FLAG_HAS_ENUM_CONSTRAINT = 0x2

Definition at line 21 of file CommandParameter.php.

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