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