13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::SETTINGS_COMMAND_PACKET;
22 private string $command;
23 private bool $suppressOutput;
28 public static function create(
string $command,
bool $suppressOutput) : self{
30 $result->command = $command;
31 $result->suppressOutput = $suppressOutput;
35 public function getCommand() : string{
36 return $this->command;
39 public function getSuppressOutput() : bool{
40 return $this->suppressOutput;
44 $this->command = $in->getString();
45 $this->suppressOutput = $in->
getBool();
49 $out->putString($this->command);
50 $out->putBool($this->suppressOutput);
54 return $handler->handleSettingsCommand($this);
encodePayload(PacketSerializer $out)
handle(PacketHandlerInterface $handler)
static create(string $command, bool $suppressOutput)
decodePayload(PacketSerializer $in)