Rename NetworkBinaryStream -> PacketSerializer

This commit is contained in:
Dylan K. Taylor
2020-06-17 11:31:13 +01:00
parent c6557f0222
commit 6c096c44aa
176 changed files with 575 additions and 564 deletions

View File

@ -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 TakeItemActorPacket extends DataPacket implements ClientboundPacket{
public const NETWORK_ID = ProtocolInfo::TAKE_ITEM_ACTOR_PACKET;
@ -42,12 +42,12 @@ class TakeItemActorPacket extends DataPacket implements ClientboundPacket{
return $result;
}
protected function decodePayload(NetworkBinaryStream $in) : void{
protected function decodePayload(PacketSerializer $in) : void{
$this->target = $in->getEntityRuntimeId();
$this->eid = $in->getEntityRuntimeId();
}
protected function encodePayload(NetworkBinaryStream $out) : void{
protected function encodePayload(PacketSerializer $out) : void{
$out->putEntityRuntimeId($this->target);
$out->putEntityRuntimeId($this->eid);
}