Documentation

ResourcePackStackPacket extends DataPacket
in package
implements ClientboundPacket

Interfaces, Classes, Traits and Enums

ClientboundPacket

Table of Contents

NETWORK_ID  = \pocketmine\network\mcpe\protocol\ProtocolInfo::RESOURCE_PACK_STACK_PACKET
PID_MASK  = 0x3ff
RECIPIENT_SUBCLIENT_ID_SHIFT  = 12
SENDER_SUBCLIENT_ID_SHIFT  = 10
SUBCLIENT_ID_MASK  = 0x3
$baseGameVersion  : string
$behaviorPackStack  : array<string|int, mixed>
$experiments  : Experiments
$mustAccept  : bool
$recipientSubId  : int
$resourcePackStack  : array<string|int, mixed>
$senderSubId  : int
__get()  : mixed
__set()  : void
canBeSentBeforeLogin()  : bool
create()  : self
decode()  : void
encode()  : void
getName()  : string
handle()  : bool
pid()  : int
decodeHeader()  : void
decodePayload()  : void
Decodes the packet body, without the packet ID or other generic header fields.
encodeHeader()  : void
encodePayload()  : void
Encodes the packet body, without the packet ID or other generic header fields.

Constants

NETWORK_ID

public mixed NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::RESOURCE_PACK_STACK_PACKET

RECIPIENT_SUBCLIENT_ID_SHIFT

private mixed RECIPIENT_SUBCLIENT_ID_SHIFT = 12

SENDER_SUBCLIENT_ID_SHIFT

private mixed SENDER_SUBCLIENT_ID_SHIFT = 10

SUBCLIENT_ID_MASK

private mixed SUBCLIENT_ID_MASK = 0x3

Properties

$baseGameVersion

public string $baseGameVersion = \pocketmine\network\mcpe\protocol\ProtocolInfo::MINECRAFT_VERSION_NETWORK

Methods

__get()

public __get(string $name) : mixed
Parameters
$name : string
Return values
mixed

__set()

public __set(string $name, mixed $value) : void
Parameters
$name : string
$value : mixed
Return values
void

canBeSentBeforeLogin()

public canBeSentBeforeLogin() : bool
Return values
bool

create()

public static create(array<string|int, ResourcePackStackEntry$resourcePackStack, array<string|int, ResourcePackStackEntry$behaviorPackStack, bool $mustAccept, string $baseGameVersion, Experiments $experiments) : self
Parameters
$resourcePackStack : array<string|int, ResourcePackStackEntry>
$behaviorPackStack : array<string|int, ResourcePackStackEntry>
$mustAccept : bool
$baseGameVersion : string
$experiments : Experiments
Tags
generate-create-func
Return values
self

getName()

public getName() : string
Return values
string

Search results