|
static | create (Vector3 $position, float $pitch, float $yaw, float $headYaw, float $moveVecX, float $moveVecZ, BitSet $inputFlags, int $inputMode, int $playMode, int $interactionMode, Vector2 $interactRotation, int $tick, Vector3 $delta, ?ItemInteractionData $itemInteractionData, ?ItemStackRequest $itemStackRequest, ?array $blockActions, ?PlayerAuthInputVehicleInfo $vehicleInfo, float $analogMoveVecX, float $analogMoveVecZ, Vector3 $cameraOrientation, Vector2 $rawMove) |
|
Definition at line 33 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, |
|
|
BitSet | $inputFlags, |
|
|
int | $inputMode, |
|
|
int | $playMode, |
|
|
int | $interactionMode, |
|
|
Vector2 | $interactRotation, |
|
|
int | $tick, |
|
|
Vector3 | $delta, |
|
|
?ItemInteractionData | $itemInteractionData, |
|
|
?ItemStackRequest | $itemStackRequest, |
|
|
?array | $blockActions, |
|
|
?PlayerAuthInputVehicleInfo | $vehicleInfo, |
|
|
float | $analogMoveVecX, |
|
|
float | $analogMoveVecZ, |
|
|
Vector3 | $cameraOrientation, |
|
|
Vector2 | $rawMove ) |
|
static |
- Parameters
-
- See also
- PlayerAuthInputFlags
- Parameters
-
- See also
- InputMode
- Parameters
-
- See also
- PlayMode
- Parameters
-
- See also
- InteractionMode
- Parameters
-
PlayerBlockAction[] | null | $blockActions | Blocks that the client has interacted with |
Definition at line 118 of file PlayerAuthInputPacket.php.
◆ decode()
◆ decodeHeader()
pocketmine\network\mcpe\protocol\DataPacket::decodeHeader |
( |
PacketSerializer | $in | ) |
|
|
protectedinherited |
- Exceptions
-
BinaryDataException | |
PacketDecodeException | |
Definition at line 62 of file DataPacket.php.
◆ 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 |
( |
| ) |
|
◆ getCameraOrientation()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getCameraOrientation |
( |
| ) |
|
◆ 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 |
( |
| ) |
|
◆ getInteractRotation()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getInteractRotation |
( |
| ) |
|
◆ 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 |
( |
| ) |
|
◆ getRawMove()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getRawMove |
( |
| ) |
|
◆ getTick()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getTick |
( |
| ) |
|
◆ getVehicleInfo()
pocketmine\network\mcpe\protocol\PlayerAuthInputPacket::getVehicleInfo |
( |
| ) |
|
◆ 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
-
PacketDecodeException | if broken data was found in the packet |
Implements pocketmine\network\mcpe\protocol\Packet.
Definition at line 339 of file PlayerAuthInputPacket.php.
◆ 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: