13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
21 public const NETWORK_ID = ProtocolInfo::COMMAND_BLOCK_UPDATE_PACKET;
26 public int $commandBlockMode;
27 public bool $isRedstoneMode;
28 public bool $isConditional;
30 public int $minecartActorRuntimeId;
32 public string $command;
33 public string $lastOutput;
35 public bool $shouldTrackOutput;
36 public int $tickDelay;
37 public bool $executeOnFirstTick;
40 $this->isBlock = $in->getBool();
45 $this->isRedstoneMode = $in->
getBool();
46 $this->isConditional = $in->
getBool();
56 $this->shouldTrackOutput = $in->
getBool();
57 $this->tickDelay = $in->
getLInt();
58 $this->executeOnFirstTick = $in->
getBool();
62 $out->putBool($this->isBlock);
67 $out->putBool($this->isRedstoneMode);
68 $out->putBool($this->isConditional);
70 $out->putActorRuntimeId($this->minecartActorRuntimeId);
73 $out->putString($this->command);
74 $out->putString($this->lastOutput);
75 $out->putString($this->name);
77 $out->putBool($this->shouldTrackOutput);
78 $out->putLInt($this->tickDelay);
79 $out->putBool($this->executeOnFirstTick);
83 return $handler->handleCommandBlockUpdate($this);
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)
encodePayload(PacketSerializer $out)
putBlockPosition(BlockPosition $blockPosition)
putUnsignedVarInt(int $v)