|
static | create (Vector3 $position, float $pitch, float $yaw, float $headYaw, float $moveVecX, float $moveVecZ, int $inputFlags, int $inputMode, int $playMode, int $interactionMode, ?Vector3 $vrGazeDirection, int $tick, Vector3 $delta, ?ItemInteractionData $itemInteractionData, ?ItemStackRequest $itemStackRequest, ?array $blockActions, ?PlayerAuthInputVehicleInfo $vehicleInfo, float $analogMoveVecX, float $analogMoveVecZ) |
|
Definition at line 32 of file PlayerAuthInputPacket.php.
◆ __get()
pocketmine\network\mcpe\protocol\DataPacket::__get |
( |
|
$name | ) |
|
|
inherited |
◆ __set()
pocketmine\network\mcpe\protocol\DataPacket::__set |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
◆ canBeSentBeforeLogin()
pocketmine\network\mcpe\protocol\DataPacket::canBeSentBeforeLogin |
( |
| ) |
|
|
inherited |
◆ create()
static pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::create |
( |
Vector3 |
$position, |
|
|
float |
$pitch, |
|
|
float |
$yaw, |
|
|
float |
$headYaw, |
|
|
float |
$moveVecX, |
|
|
float |
$moveVecZ, |
|
|
int |
$inputFlags, |
|
|
int |
$inputMode, |
|
|
int |
$playMode, |
|
|
int |
$interactionMode, |
|
|
?Vector3 |
$vrGazeDirection, |
|
|
int |
$tick, |
|
|
Vector3 |
$delta, |
|
|
?ItemInteractionData |
$itemInteractionData, |
|
|
?ItemStackRequest |
$itemStackRequest, |
|
|
?array |
$blockActions, |
|
|
?PlayerAuthInputVehicleInfo |
$vehicleInfo, |
|
|
float |
$analogMoveVecX, |
|
|
float |
$analogMoveVecZ |
|
) |
| |
|
static |
- Parameters
-
- See also
- PlayerAuthInputFlags
- Parameters
-
- See also
- InputMode
- Parameters
-
- See also
- PlayMode
- Parameters
-
- See also
- InteractionMode
- Parameters
-
Vector3 | null | $vrGazeDirection | only used when PlayMode::VR |
PlayerBlockAction[] | null | $blockActions | Blocks that the client has interacted with |
Definition at line 64 of file PlayerAuthInputPacket.php.
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer |
$in | ) |
|
|
protectedinherited |
◆ decodePayload()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::decodePayload |
( |
PacketSerializer |
$in | ) |
|
|
protected |
◆ encode()
◆ encodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::encodeHeader |
( |
PacketSerializer |
$out | ) |
|
|
protectedinherited |
◆ encodePayload()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::encodePayload |
( |
PacketSerializer |
$out | ) |
|
|
protected |
◆ getAnalogMoveVecX()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getAnalogMoveVecX |
( |
| ) |
|
◆ getAnalogMoveVecZ()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getAnalogMoveVecZ |
( |
| ) |
|
◆ getBlockActions()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getBlockActions |
( |
| ) |
|
◆ getDelta()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getDelta |
( |
| ) |
|
◆ getHeadYaw()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getHeadYaw |
( |
| ) |
|
◆ getInputFlags()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getInputFlags |
( |
| ) |
|
◆ getInputMode()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getInputMode |
( |
| ) |
|
◆ getInteractionMode()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getInteractionMode |
( |
| ) |
|
◆ getItemInteractionData()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getItemInteractionData |
( |
| ) |
|
◆ getItemStackRequest()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getItemStackRequest |
( |
| ) |
|
◆ getMoveVecX()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getMoveVecX |
( |
| ) |
|
◆ getMoveVecZ()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getMoveVecZ |
( |
| ) |
|
◆ getName()
pocketmine\network\mcpe\protocol\DataPacket::getName |
( |
| ) |
|
|
inherited |
◆ getPitch()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getPitch |
( |
| ) |
|
◆ getPlayMode()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getPlayMode |
( |
| ) |
|
◆ getPosition()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getPosition |
( |
| ) |
|
◆ getTick()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getTick |
( |
| ) |
|
◆ getVehicleInfo()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getVehicleInfo |
( |
| ) |
|
◆ getVrGazeDirection()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getVrGazeDirection |
( |
| ) |
|
◆ getYaw()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getYaw |
( |
| ) |
|
◆ handle()
Performs handling for this packet. Usually you'll want an appropriately named method in the session handler for this.
This method returns a bool to indicate whether the packet was handled or not. If the packet was unhandled, a debug message will be logged with a hexdump of the packet.
Typically this method returns the return value of the handler in the supplied PacketHandler. See other packets for examples how to implement this.
- Returns
- bool true if the packet was handled successfully, false if not.
- Exceptions
-
Implements pocketmine\network\mcpe\protocol\Packet.
Definition at line 295 of file PlayerAuthInputPacket.php.
◆ hasFlag()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::hasFlag |
( |
int |
$flag | ) |
|
◆ pid()
pocketmine\network\mcpe\protocol\DataPacket::pid |
( |
| ) |
|
|
inherited |
◆ $recipientSubId
int pocketmine\network\mcpe\protocol\DataPacket::$recipientSubId = 0 |
|
inherited |
◆ $senderSubId
int pocketmine\network\mcpe\protocol\DataPacket::$senderSubId = 0 |
|
inherited |
◆ NETWORK_ID
const pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::NETWORK_ID = ProtocolInfo::PLAYER_AUTH_INPUT_PACKET |
◆ PID_MASK
const pocketmine\network\mcpe\protocol\DataPacket::PID_MASK = 0x3ff |
|
inherited |
The documentation for this class was generated from the following file: