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

Static Public Member Functions

static allFields (string $paramName, int $paramType, bool $isOptional, int $flags, CommandHardEnum|CommandSoftEnum|null $enum, ?string $postfix)
 
static enum (string $name, CommandHardEnum $enum, int $flags, bool $optional=false)
 
static postfixed (string $name, string $postfix, int $flags=0, bool $optional=false)
 
static softEnum (string $name, CommandSoftEnum $enum, int $flags, bool $optional=false)
 
static standard (string $name, int $type, int $flags=0, bool $optional=false)
 

Public Attributes

CommandHardEnum CommandSoftEnum null $enum = null
 
int $flags = 0
 
bool $isOptional
 
string $paramName
 
int $paramType
 
string $postfix = null
 
const FLAG_FORCE_COLLAPSE_ENUM = 0x1
 
const FLAG_HAS_ENUM_CONSTRAINT = 0x2
 

Detailed Description

Definition at line 17 of file CommandParameter.php.

Member Function Documentation

◆ allFields()

static pocketmine\network\mcpe\protocol\types\command\CommandParameter::allFields ( string $paramName,
int $paramType,
bool $isOptional,
int $flags,
CommandHardEnum|CommandSoftEnum|null $enum,
?string $postfix )
static

@generate-create-func

Definition at line 62 of file CommandParameter.php.

◆ enum()

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

Definition at line 47 of file CommandParameter.php.

◆ postfixed()

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

Definition at line 41 of file CommandParameter.php.

◆ softEnum()

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

Definition at line 53 of file CommandParameter.php.

◆ standard()

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

Definition at line 37 of file CommandParameter.php.

Member Data Documentation

◆ $enum

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

Definition at line 25 of file CommandParameter.php.

◆ $flags

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

Definition at line 24 of file CommandParameter.php.

◆ $isOptional

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

Definition at line 23 of file CommandParameter.php.

◆ $paramName

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

Definition at line 21 of file CommandParameter.php.

◆ $paramType

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

Definition at line 22 of file CommandParameter.php.

◆ $postfix

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

Definition at line 26 of file CommandParameter.php.

◆ FLAG_FORCE_COLLAPSE_ENUM

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

Definition at line 18 of file CommandParameter.php.

◆ FLAG_HAS_ENUM_CONSTRAINT

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

Definition at line 19 of file CommandParameter.php.


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