mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +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 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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user