Documentation

UpdateBlockSyncedPacket extends UpdateBlockPacket
in package

Table of Contents

DATA_LAYER_LIQUID  = 1
DATA_LAYER_NORMAL  = 0
FLAG_NEIGHBORS  = 0b1
FLAG_NETWORK  = 0b10
FLAG_NOGRAPHIC  = 0b100
FLAG_NONE  = 0b0
FLAG_PRIORITY  = 0b1000
NETWORK_ID  = \pocketmine\network\mcpe\protocol\ProtocolInfo::UPDATE_BLOCK_SYNCED_PACKET
PID_MASK  = 0x3ff
TYPE_CREATE  = 1
TYPE_DESTROY  = 2
TYPE_NONE  = 0
RECIPIENT_SUBCLIENT_ID_SHIFT  = 12
SENDER_SUBCLIENT_ID_SHIFT  = 10
SUBCLIENT_ID_MASK  = 0x3
$actorUniqueId  : int
$blockPosition  : BlockPosition
$blockRuntimeId  : int
$dataLayerId  : int
$flags  : int
$recipientSubId  : int
$senderSubId  : int
$updateType  : 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::UPDATE_BLOCK_SYNCED_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

$flags

public int $flags = self::FLAG_NETWORK

Flags are used by MCPE internally for block setting, but only flag 2 (network flag) is relevant for network. This field is pointless really.

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(BlockPosition $blockPosition, int $blockRuntimeId, int $flags, int $dataLayerId) : self
Parameters
$blockPosition : BlockPosition
$blockRuntimeId : int
$flags : int
$dataLayerId : int
Tags
generate-create-func
Return values
self

getName()

public getName() : string
Return values
string

Search results