MoveActorDeltaPacket
extends DataPacket
in package
implements
ClientboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- FLAG_FORCE_MOVE_LOCAL_ENTITY = 0x100
- FLAG_GROUND = 0x40
- FLAG_HAS_HEAD_YAW = 0x20
- FLAG_HAS_PITCH = 0x8
- FLAG_HAS_X = 0x1
- FLAG_HAS_Y = 0x2
- FLAG_HAS_YAW = 0x10
- FLAG_HAS_Z = 0x4
- FLAG_TELEPORT = 0x80
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::MOVE_ACTOR_DELTA_PACKET
- PID_MASK = 0x3ff
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $actorRuntimeId : int
- $flags : int
- $headYaw : float
- $pitch : float
- $recipientSubId : int
- $senderSubId : int
- $xPos : float
- $yaw : float
- $yPos : float
- $zPos : float
- __get() : mixed
- __set() : void
- canBeSentBeforeLogin() : bool
- decode() : void
- encode() : void
- getName() : string
- handle() : bool
- pid() : int
- 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.
- maybeReadCoord() : float
- maybeReadRotation() : float
- maybeWriteCoord() : void
- maybeWriteRotation() : void
Constants
FLAG_FORCE_MOVE_LOCAL_ENTITY
public
mixed
FLAG_FORCE_MOVE_LOCAL_ENTITY
= 0x100
FLAG_GROUND
public
mixed
FLAG_GROUND
= 0x40
FLAG_HAS_HEAD_YAW
public
mixed
FLAG_HAS_HEAD_YAW
= 0x20
FLAG_HAS_PITCH
public
mixed
FLAG_HAS_PITCH
= 0x8
FLAG_HAS_X
public
mixed
FLAG_HAS_X
= 0x1
FLAG_HAS_Y
public
mixed
FLAG_HAS_Y
= 0x2
FLAG_HAS_YAW
public
mixed
FLAG_HAS_YAW
= 0x10
FLAG_HAS_Z
public
mixed
FLAG_HAS_Z
= 0x4
FLAG_TELEPORT
public
mixed
FLAG_TELEPORT
= 0x80
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::MOVE_ACTOR_DELTA_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
$flags
public
int
$flags
$headYaw
public
float
$headYaw
= 0.0
$pitch
public
float
$pitch
= 0.0
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
$xPos
public
float
$xPos
= 0
$yaw
public
float
$yaw
= 0.0
$yPos
public
float
$yPos
= 0
$zPos
public
float
$zPos
= 0
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 —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 —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
Return values
void —maybeReadCoord()
private
maybeReadCoord(int $flag, PacketSerializer $in) : float
Parameters
- $flag : int
- $in : PacketSerializer
Tags
Return values
float —maybeReadRotation()
private
maybeReadRotation(int $flag, PacketSerializer $in) : float
Parameters
- $flag : int
- $in : PacketSerializer
Tags
Return values
float —maybeWriteCoord()
private
maybeWriteCoord(int $flag, float $val, PacketSerializer $out) : void
Parameters
- $flag : int
- $val : float
- $out : PacketSerializer
Return values
void —maybeWriteRotation()
private
maybeWriteRotation(int $flag, float $val, PacketSerializer $out) : void
Parameters
- $flag : int
- $val : float
- $out : PacketSerializer