PlayerAuthInputPacket
extends DataPacket
in package
implements
ServerboundPacket
Interfaces, Classes, Traits and Enums
Table of Contents
- NETWORK_ID = \pocketmine\network\mcpe\protocol\ProtocolInfo::PLAYER_AUTH_INPUT_PACKET
- PID_MASK = 0x3ff
- RECIPIENT_SUBCLIENT_ID_SHIFT = 12
- SENDER_SUBCLIENT_ID_SHIFT = 10
- SUBCLIENT_ID_MASK = 0x3
- $itemInteractionData : ItemInteractionData|null
- $recipientSubId : int
- $senderSubId : int
- $blockActions : array<string|int, mixed>|null
- $delta : Vector3
- $headYaw : float
- $inputFlags : int
- $inputMode : int
- $itemStackRequest : ItemStackRequest|null
- $moveVecX : float
- $moveVecZ : float
- $pitch : float
- $playMode : int
- $position : Vector3
- $tick : int
- $vrGazeDirection : Vector3|null
- $yaw : float
- __get() : mixed
- __set() : void
- canBeSentBeforeLogin() : bool
- create() : self
- decode() : void
- encode() : void
- getBlockActions() : array<string|int, PlayerBlockAction>|null
- getDelta() : Vector3
- getHeadYaw() : float
- getInputFlags() : int
- getInputMode() : int
- getItemInteractionData() : ItemInteractionData|null
- getItemStackRequest() : ItemStackRequest|null
- getMoveVecX() : float
- getMoveVecZ() : float
- getName() : string
- getPitch() : float
- getPlayMode() : int
- getPosition() : Vector3
- getTick() : int
- getVrGazeDirection() : Vector3|null
- getYaw() : float
- handle() : bool
- hasFlag() : 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.
Constants
NETWORK_ID
public
mixed
NETWORK_ID
= \pocketmine\network\mcpe\protocol\ProtocolInfo::PLAYER_AUTH_INPUT_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
$itemInteractionData
public
ItemInteractionData|null
$itemInteractionData
= null
$recipientSubId
public
int
$recipientSubId
= 0
$senderSubId
public
int
$senderSubId
= 0
$blockActions
private
array<string|int, mixed>|null
$blockActions
= null
$delta
private
Vector3
$delta
$headYaw
private
float
$headYaw
$inputFlags
private
int
$inputFlags
$inputMode
private
int
$inputMode
$itemStackRequest
private
ItemStackRequest|null
$itemStackRequest
= null
$moveVecX
private
float
$moveVecX
$moveVecZ
private
float
$moveVecZ
$pitch
private
float
$pitch
$playMode
private
int
$playMode
$position
private
Vector3
$position
$tick
private
int
$tick
$vrGazeDirection
private
Vector3|null
$vrGazeDirection
= null
$yaw
private
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(Vector3 $position, float $pitch, float $yaw, float $headYaw, float $moveVecX, float $moveVecZ, int $inputFlags, int $inputMode, int $playMode, Vector3|null $vrGazeDirection, int $tick, Vector3 $delta, ItemInteractionData|null $itemInteractionData, ItemStackRequest|null $itemStackRequest, array<string|int, PlayerBlockAction>|null $blockActions) : self
Parameters
- $position : Vector3
- $pitch : float
- $yaw : float
- $headYaw : float
- $moveVecX : float
- $moveVecZ : float
- $inputFlags : int
-
@see InputFlags
- $inputMode : int
-
@see InputMode
- $playMode : int
-
@see PlayMode
- $vrGazeDirection : Vector3|null
-
only used when PlayMode::VR
- $tick : int
- $delta : Vector3
- $itemInteractionData : ItemInteractionData|null
- $itemStackRequest : ItemStackRequest|null
- $blockActions : array<string|int, PlayerBlockAction>|null
-
Blocks that the client has interacted with
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 —getBlockActions()
public
getBlockActions() : array<string|int, PlayerBlockAction>|null
Return values
array<string|int, PlayerBlockAction>|null —getDelta()
public
getDelta() : Vector3
Return values
Vector3 —getHeadYaw()
public
getHeadYaw() : float
Return values
float —getInputFlags()
public
getInputFlags() : int
Tags
Return values
int —getInputMode()
public
getInputMode() : int
Tags
Return values
int —getItemInteractionData()
public
getItemInteractionData() : ItemInteractionData|null
Return values
ItemInteractionData|null —getItemStackRequest()
public
getItemStackRequest() : ItemStackRequest|null
Return values
ItemStackRequest|null —getMoveVecX()
public
getMoveVecX() : float
Return values
float —getMoveVecZ()
public
getMoveVecZ() : float
Return values
float —getName()
public
getName() : string
Return values
string —getPitch()
public
getPitch() : float
Return values
float —getPlayMode()
public
getPlayMode() : int
Tags
Return values
int —getPosition()
public
getPosition() : Vector3
Return values
Vector3 —getTick()
public
getTick() : int
Return values
int —getVrGazeDirection()
public
getVrGazeDirection() : Vector3|null
Return values
Vector3|null —getYaw()
public
getYaw() : float
Return values
float —handle()
public
handle(PacketHandlerInterface $handler) : bool
Parameters
- $handler : PacketHandlerInterface
Return values
bool —hasFlag()
public
hasFlag(int $flag) : bool
Parameters
- $flag : int
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