use pocketmine\network\mcpe\NetworkSession; class UpdateBlockSyncedPacket extends UpdateBlockPacket{ public const NETWORK_ID = ProtocolInfo::UPDATE_BLOCK_SYNCED_PACKET; /** @var int */ protected $uvarint64_1 = 0; /** @var int */ protected $uvarint64_2 = 0; protected function decodePayload(){ parent::decodePayload(); $this->uvarint64_1 = $this->getUnsignedVarLong(); $this->uvarint64_2 = $this->getUnsignedVarLong(); } protected function encodePayload(){ parent::encodePayload(); $this->putUnsignedVarLong($this->uvarint64_1); $this->putUnsignedVarLong($this->uvarint64_2); } public function handle(NetworkSession $session) : bool{ return $session->handleUpdateBlockSynced($this); } }