MovePlayerPacket
extends DataPacket
in package
implements
ClientboundPacket, ServerboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- MODE_NORMAL = 0
- MODE_PITCH = 3
- MODE_RESET = 1
- MODE_TELEPORT = 2
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::MOVE_PLAYER_PACKET
- PID_MASK = 0x3ff
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $actorRuntimeId : int
- $headYaw : float
- $mode : int
- $onGround : bool
- $pitch : float
- $position : Vector3
- $recipientSubId : int
- $ridingActorRuntimeId : int
- $senderSubId : int
- $teleportCause : int
- $teleportItem : int
- $tick : int
- $yaw : float
- __get() : mixed
- __set() : void
- canBeSentBeforeLogin() : bool
- create() : self
- decode() : void
- encode() : void
- getName() : string
- handle() : bool
- pid() : int
- simple() : self
- decodeHeader() : void
- decodePayload() : void
- Decodes the packet body, without the packet ID or other generic header fields.
- encodeHeader() : void
- encodePayload() : void
- Encodes the packet body, without the packet ID or other generic header fields.
Constants
MODE_NORMAL
public
mixed
MODE_NORMAL
= 0
MODE_PITCH
public
mixed
MODE_PITCH
= 3
MODE_RESET
public
mixed
MODE_RESET
= 1
MODE_TELEPORT
public
mixed
MODE_TELEPORT
= 2
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::MOVE_PLAYER_PACKET
PID_MASK
public
mixed
PID_MASK
= 0x3ff
RECIPIENT_SUBCLIENT_ID_SHIFT
private
mixed
RECIPIENT_SUBCLIENT_ID_SHIFT
= 12
SENDER_SUBCLIENT_ID_SHIFT
private
mixed
SENDER_SUBCLIENT_ID_SHIFT
= 10
SUBCLIENT_ID_MASK
private
mixed
SUBCLIENT_ID_MASK
= 0x3
Properties
$actorRuntimeId
public
int
$actorRuntimeId
$headYaw
public
float
$headYaw
$mode
public
int
$mode
= self::MODE_NORMAL
$onGround
public
bool
$onGround
= false
$pitch
public
float
$pitch
$position
public
Vector3
$position
$recipientSubId
public
int
$recipientSubId
= 0
$ridingActorRuntimeId
public
int
$ridingActorRuntimeId
= 0
$senderSubId
public
int
$senderSubId
= 0
$teleportCause
public
int
$teleportCause
= 0
$teleportItem
public
int
$teleportItem
= 0
$tick
public
int
$tick
= 0
$yaw
public
float
$yaw
Methods
__get()
public
__get(string $name) : mixed
Parameters
- $name : string
Return values
mixed —__set()
public
__set(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
Return values
void —canBeSentBeforeLogin()
public
canBeSentBeforeLogin() : bool
Return values
bool —create()
public
static create(int $actorRuntimeId, Vector3 $position, float $pitch, float $yaw, float $headYaw, int $mode, bool $onGround, int $ridingActorRuntimeId, int $teleportCause, int $teleportItem, int $tick) : self
Parameters
- $actorRuntimeId : int
- $position : Vector3
- $pitch : float
- $yaw : float
- $headYaw : float
- $mode : int
- $onGround : bool
- $ridingActorRuntimeId : int
- $teleportCause : int
- $teleportItem : int
- $tick : int
Tags
Return values
self —decode()
public
final decode(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —encode()
public
final encode(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —getName()
public
getName() : string
Return values
string —handle()
public
handle(PacketHandlerInterface $handler) : bool
Parameters
- $handler : PacketHandlerInterface
Return values
bool —pid()
public
pid() : int
Return values
int —simple()
public
static simple(int $actorRuntimeId, Vector3 $position, float $pitch, float $yaw, float $headYaw, int $mode, bool $onGround, int $ridingActorRuntimeId, int $tick) : self
Parameters
- $actorRuntimeId : int
- $position : Vector3
- $pitch : float
- $yaw : float
- $headYaw : float
- $mode : int
- $onGround : bool
- $ridingActorRuntimeId : int
- $tick : int
Return values
self —decodeHeader()
protected
decodeHeader(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Tags
Return values
void —decodePayload()
Decodes the packet body, without the packet ID or other generic header fields.
protected
decodePayload(PacketSerializer $in) : void
Parameters
- $in : PacketSerializer
Return values
void —encodeHeader()
protected
encodeHeader(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer
Return values
void —encodePayload()
Encodes the packet body, without the packet ID or other generic header fields.
protected
encodePayload(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer