|
static | create (ChunkPosition $chunkPosition, int $dimensionId, int $subChunkCount, bool $clientSubChunkRequestsEnabled, ?array $usedBlobHashes, string $extraPayload) |
|
Definition at line 24 of file LevelChunkPacket.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\LevelChunkPacket::create |
( |
ChunkPosition |
$chunkPosition, |
|
|
int |
$dimensionId, |
|
|
int |
$subChunkCount, |
|
|
bool |
$clientSubChunkRequestsEnabled, |
|
|
?array |
$usedBlobHashes, |
|
|
string |
$extraPayload |
|
) |
| |
|
static |
@generate-create-func
- Parameters
-
int[] | $usedBlobHashes | @phpstan-param DimensionIds::* $dimensionId |
Definition at line 54 of file LevelChunkPacket.php.
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer |
$in | ) |
|
|
protectedinherited |
◆ decodePayload()
pocketmine\network\mcpe\protocol\LevelChunkPacket::decodePayload |
( |
PacketSerializer |
$in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer |
$out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\LevelChunkPacket::encodePayload |
( |
PacketSerializer |
$out | ) |
|
|
protected |
◆ getChunkPosition()
pocketmine\network\mcpe\protocol\LevelChunkPacket::getChunkPosition |
( |
| ) |
|
◆ getDimensionId()
pocketmine\network\mcpe\protocol\LevelChunkPacket::getDimensionId |
( |
| ) |
|
◆ getExtraPayload()
pocketmine\network\mcpe\protocol\LevelChunkPacket::getExtraPayload |
( |
| ) |
|
◆ getName()
pocketmine\network\mcpe\protocol\DataPacket::getName |
( |
| ) |
|
|
inherited |
◆ getSubChunkCount()
pocketmine\network\mcpe\protocol\LevelChunkPacket::getSubChunkCount |
( |
| ) |
|
◆ getUsedBlobHashes()
pocketmine\network\mcpe\protocol\LevelChunkPacket::getUsedBlobHashes |
( |
| ) |
|
◆ 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 147 of file LevelChunkPacket.php.
◆ isCacheEnabled()
pocketmine\network\mcpe\protocol\LevelChunkPacket::isCacheEnabled |
( |
| ) |
|
◆ isClientSubChunkRequestEnabled()
pocketmine\network\mcpe\protocol\LevelChunkPacket::isClientSubChunkRequestEnabled |
( |
| ) |
|
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\LevelChunkPacket::NETWORK_ID = ProtocolInfo::LEVEL_CHUNK_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
The documentation for this class was generated from the following file: