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 PlayerActionPacket extends DataPacket implements ServerboundPacket{
|
||||
public const NETWORK_ID = ProtocolInfo::PLAYER_ACTION_PACKET;
|
||||
@ -70,14 +70,14 @@ class PlayerActionPacket extends DataPacket implements ServerboundPacket{
|
||||
/** @var int */
|
||||
public $face;
|
||||
|
||||
protected function decodePayload(NetworkBinaryStream $in) : void{
|
||||
protected function decodePayload(PacketSerializer $in) : void{
|
||||
$this->entityRuntimeId = $in->getEntityRuntimeId();
|
||||
$this->action = $in->getVarInt();
|
||||
$in->getBlockPosition($this->x, $this->y, $this->z);
|
||||
$this->face = $in->getVarInt();
|
||||
}
|
||||
|
||||
protected function encodePayload(NetworkBinaryStream $out) : void{
|
||||
protected function encodePayload(PacketSerializer $out) : void{
|
||||
$out->putEntityRuntimeId($this->entityRuntimeId);
|
||||
$out->putVarInt($this->action);
|
||||
$out->putBlockPosition($this->x, $this->y, $this->z);
|
||||
|
Reference in New Issue
Block a user