Skip to content

RideableSeat 5.46.0 ​

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

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 $riderRotationOffset

Rotation of the passenger relative to the vehicle, in degrees (vanilla rotate_rider_by, e.g. -90 in boats).

$thirdPersonCameraRadius ​

php
public readonly ?float $thirdPersonCameraRadius

Methods ​

__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

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