|
static | create (string $enumName, array $values, int $type) |
|
Definition at line 20 of file UpdateSoftEnumPacket.php.
◆ __get()
pocketmine\network\mcpe\protocol\DataPacket::__get |
( |
|
$name | ) |
|
|
inherited |
◆ __set()
pocketmine\network\mcpe\protocol\DataPacket::__set |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
◆ canBeSentBeforeLogin()
pocketmine\network\mcpe\protocol\DataPacket::canBeSentBeforeLogin |
( |
| ) |
|
|
inherited |
◆ create()
static pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::create |
( |
string |
$enumName, |
|
|
array |
$values, |
|
|
int |
$type |
|
) |
| |
|
static |
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer |
$in | ) |
|
|
protectedinherited |
◆ decodePayload()
pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::decodePayload |
( |
PacketSerializer |
$in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer |
$out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::encodePayload |
( |
PacketSerializer |
$out | ) |
|
|
protected |
◆ getName()
pocketmine\network\mcpe\protocol\DataPacket::getName |
( |
| ) |
|
|
inherited |
◆ handle()
Performs handling for this packet. Usually you'll want an appropriately named method in the session handler for this.
This method returns a bool to indicate whether the packet was handled or not. If the packet was unhandled, a debug message will be logged with a hexdump of the packet.
Typically this method returns the return value of the handler in the supplied PacketHandler. See other packets for examples how to implement this.
- Returns
- bool true if the packet was handled successfully, false if not.
- Exceptions
-
Implements pocketmine\network\mcpe\protocol\Packet.
Definition at line 61 of file UpdateSoftEnumPacket.php.
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $enumName
string pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::$enumName |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ $type
int pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::$type |
◆ $values
array pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::$values = [] |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::NETWORK_ID = ProtocolInfo::UPDATE_SOFT_ENUM_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
◆ TYPE_ADD
const pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::TYPE_ADD = 0 |
◆ TYPE_REMOVE
const pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::TYPE_REMOVE = 1 |
◆ TYPE_SET
const pocketmine\network\mcpe\protocol\UpdateSoftEnumPacket::TYPE_SET = 2 |
The documentation for this class was generated from the following file: