23 public function __construct(
26 private ?
Vector3 $cameraPosition,
28 private ?
Vector3 $facingPosition,
31 private ?
bool $default
34 public function getPreset() :
int{
return $this->preset; }
38 public function getCameraPosition() : ?
Vector3{
return $this->cameraPosition; }
42 public function getFacingPosition() : ?
Vector3{
return $this->facingPosition; }
44 public function getViewOffset() : ?
Vector2{
return $this->viewOffset; }
46 public function getEntityOffset() : ?
Vector3{
return $this->entityOffset; }
48 public function getDefault() : ?
bool{
return $this->default; }
52 $ease = $in->
readOptional(fn() => CameraSetInstructionEase::read($in));
54 $rotation = $in->
readOptional(fn() => CameraSetInstructionRotation::read($in));
73 $out->putLInt($this->preset);