PocketMine-MP
5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
CommandData.php
1
<?php
2
3
/*
4
* This file is part of BedrockProtocol.
5
* Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
6
*
7
* BedrockProtocol is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*/
12
13
declare(strict_types=1);
14
15
namespace
pocketmine\network\mcpe\protocol\types\command;
16
17
class
CommandData
{
22
public
function
__construct
(
23
public
string
$name,
24
public
string
$description,
25
public
int
$flags,
26
public
int
$permission,
27
public
?
CommandEnum
$aliases,
28
public
array $overloads,
29
public
array $chainedSubCommandData
30
){
31
(
function
(
CommandOverload
...$overloads) :
void
{})(...$overloads);
32
(
function
(
ChainedSubCommandData
...$chainedSubCommandData) :
void
{})(...$chainedSubCommandData);
33
}
34
35
public
function
getName() : string{
36
return $this->name;
37
}
38
39
public
function
getDescription() : string{
40
return $this->description;
41
}
42
43
public
function
getFlags() : int{
44
return $this->flags;
45
}
46
47
public
function
getPermission() : int{
48
return $this->permission;
49
}
50
51
public
function
getAliases() : ?CommandEnum{
52
return $this->aliases;
53
}
54
58
public
function
getOverloads
() : array{
59
return $this->overloads;
60
}
61
65
public
function
getChainedSubCommandData
() : array{
66
return $this->chainedSubCommandData;
67
}
68
}
pocketmine\network\mcpe\protocol\types\command\ChainedSubCommandData
Definition
ChainedSubCommandData.php:17
pocketmine\network\mcpe\protocol\types\command\CommandData
Definition
CommandData.php:17
pocketmine\network\mcpe\protocol\types\command\CommandData\getOverloads
getOverloads()
Definition
CommandData.php:58
pocketmine\network\mcpe\protocol\types\command\CommandData\__construct
__construct(public string $name, public string $description, public int $flags, public int $permission, public ?CommandEnum $aliases, public array $overloads, public array $chainedSubCommandData)
Definition
CommandData.php:22
pocketmine\network\mcpe\protocol\types\command\CommandData\getChainedSubCommandData
getChainedSubCommandData()
Definition
CommandData.php:65
pocketmine\network\mcpe\protocol\types\command\CommandEnum
Definition
CommandEnum.php:17
pocketmine\network\mcpe\protocol\types\command\CommandOverload
Definition
CommandOverload.php:17
vendor
pocketmine
bedrock-protocol
src
types
command
CommandData.php
Generated by
1.12.0