13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::CONTAINER_CLOSE_PACKET;
23 public bool $server =
false;
28 public static function create(
int $windowId,
bool $server) : self{
30 $result->windowId = $windowId;
31 $result->server = $server;
36 $this->windowId = $in->getByte();
41 $out->putByte($this->windowId);
42 $out->putBool($this->server);
46 return $handler->handleContainerClose($this);
static create(int $windowId, bool $server)
encodePayload(PacketSerializer $out)
decodePayload(PacketSerializer $in)
handle(PacketHandlerInterface $handler)