mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Rename NetworkBinaryStream -> PacketSerializer
This commit is contained in:
@ -25,7 +25,7 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
#include <rules/DataPacket.h>
|
||||
|
||||
use pocketmine\network\mcpe\protocol\serializer\NetworkBinaryStream;
|
||||
use pocketmine\network\mcpe\protocol\serializer\PacketSerializer;
|
||||
|
||||
class SetCommandsEnabledPacket extends DataPacket implements ClientboundPacket{
|
||||
public const NETWORK_ID = ProtocolInfo::SET_COMMANDS_ENABLED_PACKET;
|
||||
@ -33,11 +33,11 @@ class SetCommandsEnabledPacket extends DataPacket implements ClientboundPacket{
|
||||
/** @var bool */
|
||||
public $enabled;
|
||||
|
||||
protected function decodePayload(NetworkBinaryStream $in) : void{
|
||||
protected function decodePayload(PacketSerializer $in) : void{
|
||||
$this->enabled = $in->getBool();
|
||||
}
|
||||
|
||||
protected function encodePayload(NetworkBinaryStream $out) : void{
|
||||
protected function encodePayload(PacketSerializer $out) : void{
|
||||
$out->putBool($this->enabled);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user