23 public const NETWORK_ID = ProtocolInfo::CAMERA_INSTRUCTION_PACKET;
29 private ?
bool $removeTarget;
37 $result->clear = $clear;
38 $result->fade = $fade;
39 $result->target = $target;
40 $result->removeTarget = $removeTarget;
46 public function getClear() : ?bool{ return $this->clear; }
48 public function getFade() : ?CameraFadeInstruction{ return $this->fade; }
50 public function getTarget() : ?CameraTargetInstruction{ return $this->target; }
52 public function getRemoveTarget() : ?bool{ return $this->removeTarget; }
57 $this->fade = $in->
readOptional(fn() => CameraFadeInstruction::read($in));
58 $this->target = $in->
readOptional(fn() => CameraTargetInstruction::read($in));
71 return $handler->handleCameraInstruction($this);