24 public const NETWORK_ID = ProtocolInfo::CAMERA_INSTRUCTION_PACKET;
30 private ?
bool $removeTarget;
39 $result->clear = $clear;
40 $result->fade = $fade;
41 $result->target = $target;
42 $result->removeTarget = $removeTarget;
43 $result->fieldOfView = $fieldOfView;
49 public function getClear() : ?bool{ return $this->clear; }
51 public function getFade() : ?CameraFadeInstruction{ return $this->fade; }
53 public function getTarget() : ?CameraTargetInstruction{ return $this->target; }
55 public function getRemoveTarget() : ?bool{ return $this->removeTarget; }
57 public function getFieldOfView() : ?CameraFovInstruction{ return $this->fieldOfView; }
62 $this->fade = $in->
readOptional(fn() => CameraFadeInstruction::read($in));
63 $this->target = $in->
readOptional(fn() => CameraTargetInstruction::read($in));
65 $this->fieldOfView = $in->
readOptional(fn() => CameraFovInstruction::read($in));
78 return $handler->handleCameraInstruction($this);