RideableSeat 5.46.0
A seat of a rideable entity, from the "seats" of the vanilla minecraft:rideable component: the position of the passenger relative to the vehicle (x to the vehicle's left, y up, z forwards, before rotating by the vehicle's yaw), and the optional camera settings sent to riding players.
Properties
$cameraRelaxDistanceSmoothing
php
public readonly ?float $cameraRelaxDistanceSmoothing$lockRiderRotation
php
public readonly ?float $lockRiderRotation$position
php
public readonly \pocketmine\math\Vector3 $position$riderRotationOffset
php
public readonly ?float $riderRotationOffsetRotation of the passenger relative to the vehicle, in degrees (vanilla rotate_rider_by, e.g. -90 in boats).
$thirdPersonCameraRadius
php
public readonly ?float $thirdPersonCameraRadiusMethods
__construct()
php
public function __construct(\pocketmine\math\Vector3 $position, ?float $lockRiderRotation = null, ?float $thirdPersonCameraRadius = null, ?float $cameraRelaxDistanceSmoothing = null, ?float $riderRotationOffset = null)at()
php
public static function at(float $x, float $y, float $z) : self