13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::SET_COMMANDS_ENABLED_PACKET;
27 public static function create(
bool $enabled) : self{
29 $result->enabled = $enabled;
34 $this->enabled = $in->getBool();
38 $out->putBool($this->enabled);
42 return $handler->handleSetCommandsEnabled($this);
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)
encodePayload(PacketSerializer $out)
static create(bool $enabled)