StartGamePacket
extends DataPacket
in package
implements
ClientboundPacket
Interfaces, Classes, Traits and Enums
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
PID_MASK
public
mixed
PID_MASK
= 0x3ff
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
$actorRuntimeId
public
int
$actorRuntimeId
$actorUniqueId
public
int
$actorUniqueId
$blockPalette
public
array<string|int, mixed>
$blockPalette
= []
Tags
$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).
$currentTick
public
int
$currentTick
= 0
$enableNewInventorySystem
public
bool
$enableNewInventorySystem
= false
$enchantmentSeed
public
int
$enchantmentSeed
= 0
$isTrial
public
bool
$isTrial
= false
$itemTable
public
array<string|int, mixed>
$itemTable
Tags
$levelId
public
string
$levelId
= ""
$levelSettings
public
LevelSettings
$levelSettings
$multiplayerCorrelationId
public
string
$multiplayerCorrelationId
= ""
$pitch
public
float
$pitch
$playerGamemode
public
int
$playerGamemode
$playerMovementSettings
public
PlayerMovementSettings
$playerMovementSettings
$playerPosition
public
Vector3
$playerPosition
$premiumWorldTemplateId
public
string
$premiumWorldTemplateId
= ""
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
$serverSoftwareVersion
public
string
$serverSoftwareVersion
$worldName
public
string
$worldName
$yaw
public
float
$yaw
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
Return values
self —decode()
public
final decode(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —encode()
public
final encode(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —getName()
public
getName() : string
Return values
string —handle()
public
handle(PacketHandlerInterface $handler) : bool
Parameters
- $handler : PacketHandlerInterface
Return values
bool —pid()
public
pid() : int
Return values
int —decodeHeader()
protected
decodeHeader(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —decodePayload()
Decodes the packet body, without the packet ID or other generic header fields.
protected
decodePayload(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Return values
void —encodeHeader()
protected
encodeHeader(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —encodePayload()
Encodes the packet body, without the packet ID or other generic header fields.
protected
encodePayload(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer