13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
22 public const NETWORK_ID = ProtocolInfo::CAMERA_PRESETS_PACKET;
25 private array $presets;
31 public static function create(array $presets) : self{
33 $result->presets = $presets;
40 public function getPresets() : array{ return $this->presets; }
45 $this->presets[] = CameraPreset::read($in);
50 $out->putUnsignedVarInt(count($this->presets));
51 foreach($this->presets as $preset){
57 return $handler->handleCameraPresets($this);
static create(array $presets)
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)
decodePayload(PacketSerializer $in)