|
static | create (int $actorUniqueId, int $actorRuntimeId, int $playerGamemode, Vector3 $playerPosition, float $pitch, float $yaw, CacheableNbt $playerActorProperties, LevelSettings $levelSettings, string $levelId, string $worldName, string $premiumWorldTemplateId, bool $isTrial, PlayerMovementSettings $playerMovementSettings, int $currentTick, int $enchantmentSeed, string $multiplayerCorrelationId, bool $enableNewInventorySystem, string $serverSoftwareVersion, UuidInterface $worldTemplateId, bool $enableClientSideChunkGeneration, bool $blockNetworkIdsAreHashes, NetworkPermissions $networkPermissions, array $blockPalette, int $blockPaletteChecksum, array $itemTable,) |
|
Definition at line 29 of file StartGamePacket.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\StartGamePacket::create |
( |
int | $actorUniqueId, |
|
|
int | $actorRuntimeId, |
|
|
int | $playerGamemode, |
|
|
Vector3 | $playerPosition, |
|
|
float | $pitch, |
|
|
float | $yaw, |
|
|
CacheableNbt | $playerActorProperties, |
|
|
LevelSettings | $levelSettings, |
|
|
string | $levelId, |
|
|
string | $worldName, |
|
|
string | $premiumWorldTemplateId, |
|
|
bool | $isTrial, |
|
|
PlayerMovementSettings | $playerMovementSettings, |
|
|
int | $currentTick, |
|
|
int | $enchantmentSeed, |
|
|
string | $multiplayerCorrelationId, |
|
|
bool | $enableNewInventorySystem, |
|
|
string | $serverSoftwareVersion, |
|
|
UuidInterface | $worldTemplateId, |
|
|
bool | $enableClientSideChunkGeneration, |
|
|
bool | $blockNetworkIdsAreHashes, |
|
|
NetworkPermissions | $networkPermissions, |
|
|
array | $blockPalette, |
|
|
int | $blockPaletteChecksum, |
|
|
array | $itemTable ) |
|
static |
@generate-create-func
- Parameters
-
BlockPaletteEntry[] | $blockPalette | |
ItemTypeEntry[] | $itemTable | @phpstan-param CacheableNbt<CompoundTag> $playerActorProperties @phpstan-param list<BlockPaletteEntry> $blockPalette @phpstan-param list<ItemTypeEntry> $itemTable |
Definition at line 88 of file StartGamePacket.php.
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer | $in | ) |
|
|
protectedinherited |
- Exceptions
-
BinaryDataException | |
PacketDecodeException | |
Definition at line 62 of file DataPacket.php.
◆ decodePayload()
pocketmine\network\mcpe\protocol\StartGamePacket::decodePayload |
( |
PacketSerializer | $in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer | $out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\StartGamePacket::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
-
PacketDecodeException | if broken data was found in the packet |
Implements pocketmine\network\mcpe\protocol\Packet.
Definition at line 237 of file StartGamePacket.php.
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $actorRuntimeId
int pocketmine\network\mcpe\protocol\StartGamePacket::$actorRuntimeId |
◆ $actorUniqueId
int pocketmine\network\mcpe\protocol\StartGamePacket::$actorUniqueId |
◆ $blockNetworkIdsAreHashes
bool pocketmine\network\mcpe\protocol\StartGamePacket::$blockNetworkIdsAreHashes = false |
◆ $blockPalette
array pocketmine\network\mcpe\protocol\StartGamePacket::$blockPalette = [] |
◆ $blockPaletteChecksum
int pocketmine\network\mcpe\protocol\StartGamePacket::$blockPaletteChecksum |
Checksum of the full block palette. This is a hash of some weird stringified version of the NBT. 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).
Definition at line 72 of file StartGamePacket.php.
◆ $currentTick
int pocketmine\network\mcpe\protocol\StartGamePacket::$currentTick = 0 |
◆ $enableClientSideChunkGeneration
bool pocketmine\network\mcpe\protocol\StartGamePacket::$enableClientSideChunkGeneration |
◆ $enableNewInventorySystem
bool pocketmine\network\mcpe\protocol\StartGamePacket::$enableNewInventorySystem = false |
◆ $enchantmentSeed
int pocketmine\network\mcpe\protocol\StartGamePacket::$enchantmentSeed = 0 |
◆ $isTrial
bool pocketmine\network\mcpe\protocol\StartGamePacket::$isTrial = false |
◆ $itemTable
array pocketmine\network\mcpe\protocol\StartGamePacket::$itemTable |
◆ $levelId
string pocketmine\network\mcpe\protocol\StartGamePacket::$levelId = "" |
◆ $levelSettings
LevelSettings pocketmine\network\mcpe\protocol\StartGamePacket::$levelSettings |
◆ $multiplayerCorrelationId
string pocketmine\network\mcpe\protocol\StartGamePacket::$multiplayerCorrelationId = "" |
◆ $networkPermissions
◆ $pitch
float pocketmine\network\mcpe\protocol\StartGamePacket::$pitch |
◆ $playerActorProperties
CacheableNbt pocketmine\network\mcpe\protocol\StartGamePacket::$playerActorProperties |
◆ $playerGamemode
int pocketmine\network\mcpe\protocol\StartGamePacket::$playerGamemode |
◆ $playerMovementSettings
◆ $playerPosition
Vector3 pocketmine\network\mcpe\protocol\StartGamePacket::$playerPosition |
◆ $premiumWorldTemplateId
string pocketmine\network\mcpe\protocol\StartGamePacket::$premiumWorldTemplateId = "" |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ $serverSoftwareVersion
string pocketmine\network\mcpe\protocol\StartGamePacket::$serverSoftwareVersion |
◆ $worldName
string pocketmine\network\mcpe\protocol\StartGamePacket::$worldName |
◆ $worldTemplateId
UuidInterface pocketmine\network\mcpe\protocol\StartGamePacket::$worldTemplateId |
◆ $yaw
float pocketmine\network\mcpe\protocol\StartGamePacket::$yaw |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\StartGamePacket::NETWORK_ID = ProtocolInfo::START_GAME_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
The documentation for this class was generated from the following file: