22 public const AUDIO_LISTENER_TYPE_CAMERA = 0;
23 public const AUDIO_LISTENER_TYPE_PLAYER = 1;
25 public function __construct(
27 private string $parent,
28 private ?
float $xPosition,
29 private ?
float $yPosition,
30 private ?
float $zPosition,
31 private ?
float $pitch,
33 private ?
float $rotationSpeed,
34 private ?
bool $snapToTarget,
35 private ?
Vector2 $horizontalRotationLimit,
36 private ?
Vector2 $verticalRotationLimit,
37 private ?
bool $continueTargeting,
38 private ?
float $blockListeningRadius,
41 private ?
float $radius,
42 private ?
int $audioListenerType,
43 private ?
bool $playerEffects,
44 private ?
bool $alignTargetAndCameraForward,
45 private ?
bool $aimAssist,
48 public function getName() :
string{
return $this->name; }
50 public function getParent() :
string{
return $this->parent; }
52 public function getXPosition() : ?
float{
return $this->xPosition; }
54 public function getYPosition() : ?
float{
return $this->yPosition; }
56 public function getZPosition() : ?
float{
return $this->zPosition; }
58 public function getPitch() : ?
float{
return $this->pitch; }
60 public function getYaw() : ?
float{
return $this->yaw; }
62 public function getRotationSpeed() : ?
float {
return $this->rotationSpeed; }
64 public function getSnapToTarget() : ?
bool {
return $this->snapToTarget; }
66 public function getHorizontalRotationLimit() : ?
Vector2{
return $this->horizontalRotationLimit; }
68 public function getVerticalRotationLimit() : ?
Vector2{
return $this->verticalRotationLimit; }
70 public function getContinueTargeting() : ?
bool{
return $this->continueTargeting; }
72 public function getBlockListeningRadius() : ?
float{
return $this->blockListeningRadius; }
74 public function getViewOffset() : ?
Vector2{
return $this->viewOffset; }
76 public function getEntityOffset() : ?
Vector3{
return $this->entityOffset; }
78 public function getRadius() : ?
float{
return $this->radius; }
80 public function getAudioListenerType() : ?
int{
return $this->audioListenerType; }
82 public function getPlayerEffects() : ?
bool{
return $this->playerEffects; }
84 public function getAlignTargetAndCameraForward() : ?
bool{
return $this->alignTargetAndCameraForward; }
86 public function getAimAssist() : ?
bool{
return $this->aimAssist; }
120 $horizontalRotationLimit,
121 $verticalRotationLimit,
123 $blockListeningRadius,
129 $alignTargetAndCameraForward,
135 $out->putString($this->name);
136 $out->putString($this->parent);
142 $out->
writeOptional($this->rotationSpeed, $out->putLFloat(...));
143 $out->
writeOptional($this->snapToTarget, $out->putBool(...));
146 $out->
writeOptional($this->continueTargeting, $out->putBool(...));
147 $out->
writeOptional($this->blockListeningRadius, $out->putLFloat(...));
151 $out->
writeOptional($this->audioListenerType, $out->putByte(...));
152 $out->
writeOptional($this->playerEffects, $out->putBool(...));
153 $out->
writeOptional($this->alignTargetAndCameraForward, $out->putBool(...));