Skip to content

RiderInput 5.46.0 ​

final class · pocketmine\entity\riding\RiderInput · source

Movement input of a player riding (and possibly steering) a vehicle, taken from one PlayerAuthInputPacket.

$strafe and $forward are the move vector of the client (WASD or joystick, -1 to 1): strafe is positive to the left, forward is positive forwards. Yaw and pitch are the player's look direction in degrees.

Properties ​

$forward ​

php
public readonly float $forward

$jumping ​

php
public readonly bool $jumping

$paddlingLeft ​

php
public readonly bool $paddlingLeft

Whether the client animates the left paddle of the boat it drives (PlayerAuthInput PADDLING_LEFT).

$paddlingRight ​

php
public readonly bool $paddlingRight

Whether the client animates the right paddle of the boat it drives (PlayerAuthInput PADDLING_RIGHT).

$pitch ​

php
public readonly float $pitch

$sneaking ​

php
public readonly bool $sneaking

$sprinting ​

php
public readonly bool $sprinting

$strafe ​

php
public readonly float $strafe

$yaw ​

php
public readonly float $yaw

Methods ​

__construct() ​

php
public function __construct(float $strafe, float $forward, float $yaw, float $pitch, bool $jumping, bool $sneaking, bool $sprinting, bool $paddlingLeft = false, bool $paddlingRight = false)

isMoving() ​

php
public function isMoving() : bool

none() ​

php
public static function none(float $yaw = 0.0, float $pitch = 0.0) : self

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.