mirror of
https://github.com/pmmp/BedrockProtocol.git
synced 2025-09-28 08:02:46 +00:00
- PacketSerializer is now gone - All places which previously used ByteBufferReader and ByteBufferWriter instead of PacketSerializer/BinaryStream - All helper methods previously in PacketSerializer are now provided as CommonTypes:: static methods instead BinaryUtils is still required for now since there's a couple of places where it's still irreplaceable. But all encoding and decoding is now done using ext-encoding, which should yield significant performance improvements. Stable version of NBT is still used for the time being as we don't want to be forced to fully switch over to ext-encoding right away. Doing network only is safer for now since there'll be no lasting damage done if there are growing pains. Proper integration of ext-encoding+NBT will come later. For now, this is enough to net some gains.
35 lines
846 B
PHP
35 lines
846 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of BedrockProtocol.
|
|
* Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
|
|
*
|
|
* BedrockProtocol is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace pocketmine\network\mcpe\protocol;
|
|
|
|
use pmmp\encoding\ByteBufferReader;
|
|
use pmmp\encoding\ByteBufferWriter;
|
|
|
|
class TestPacket extends DataPacket{
|
|
public const NETWORK_ID = 1023;
|
|
|
|
protected function decodePayload(ByteBufferReader $in) : void{
|
|
|
|
}
|
|
|
|
protected function encodePayload(ByteBufferWriter $out) : void{
|
|
|
|
}
|
|
|
|
public function handle(PacketHandlerInterface $handler) : bool{
|
|
return false;
|
|
}
|
|
}
|