Documentation

StartGamePacket extends DataPacket
in package
implements ClientboundPacket

Interfaces, Classes, Traits and Enums

ClientboundPacket

Table of Contents

NETWORK_ID  = \pocketmine\network\mcpe\protocol\ProtocolInfo::START_GAME_PACKET
PID_MASK  = 0x3ff
RECIPIENT_SUBCLIENT_ID_SHIFT  = 12
SENDER_SUBCLIENT_ID_SHIFT  = 10
SUBCLIENT_ID_MASK  = 0x3
$actorRuntimeId  : int
$actorUniqueId  : int
$blockPalette  : array<string|int, mixed>
$blockPaletteChecksum  : int
Checksum of the full block palette. This is a hash of some weird stringified version of the NBT.
$currentTick  : int
$enableNewInventorySystem  : bool
$enchantmentSeed  : int
$isTrial  : bool
$itemTable  : array<string|int, mixed>
$levelId  : string
$levelSettings  : LevelSettings
$multiplayerCorrelationId  : string
$pitch  : float
$playerGamemode  : int
$playerMovementSettings  : PlayerMovementSettings
$playerPosition  : Vector3
$premiumWorldTemplateId  : string
$recipientSubId  : int
$senderSubId  : int
$serverSoftwareVersion  : string
$worldName  : string
$yaw  : float
__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::START_GAME_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

$blockPalette

public array<string|int, mixed> $blockPalette = []
Tags
phpstan-var

list<BlockPaletteEntry>

$blockPaletteChecksum

Checksum of the full block palette. This is a hash of some weird stringified version of the NBT.

public int $blockPaletteChecksum

This is used along with the baseGameVersion to check for inconsistencies in the block palette. Fill with 0 if you don't want to bother having the client verify the palette (seems pointless anyway).

$enableNewInventorySystem

public bool $enableNewInventorySystem = false

$itemTable

public array<string|int, mixed> $itemTable
Tags
phpstan-var

list<ItemTypeEntry>

$multiplayerCorrelationId

public string $multiplayerCorrelationId = ""

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(int $actorUniqueId, int $actorRuntimeId, int $playerGamemode, Vector3 $playerPosition, float $pitch, float $yaw, LevelSettings $levelSettings, string $levelId, string $worldName, string $premiumWorldTemplateId, bool $isTrial, PlayerMovementSettings $playerMovementSettings, int $currentTick, int $enchantmentSeed, string $multiplayerCorrelationId, bool $enableNewInventorySystem, string $serverSoftwareVersion, array<string|int, BlockPaletteEntry$blockPalette, int $blockPaletteChecksum, array<string|int, ItemTypeEntry$itemTable) : self
Parameters
$actorUniqueId : int
$actorRuntimeId : int
$playerGamemode : int
$playerPosition : Vector3
$pitch : float
$yaw : float
$levelSettings : LevelSettings
$levelId : string
$worldName : string
$premiumWorldTemplateId : string
$isTrial : bool
$playerMovementSettings : PlayerMovementSettings
$currentTick : int
$enchantmentSeed : int
$multiplayerCorrelationId : string
$enableNewInventorySystem : bool
$serverSoftwareVersion : string
$blockPalette : array<string|int, BlockPaletteEntry>
$blockPaletteChecksum : int
$itemTable : array<string|int, ItemTypeEntry>
Tags
generate-create-func
phpstan-param

list<BlockPaletteEntry> $blockPalette

phpstan-param

list<ItemTypeEntry> $itemTable

Return values
self

getName()

public getName() : string
Return values
string

Search results