13declare(strict_types=1);
15namespace pocketmine\network\mcpe\protocol;
20 public const NETWORK_ID = ProtocolInfo::CONTAINER_CLOSE_PACKET;
23 public int $windowType;
24 public bool $server =
false;
29 public static function create(
int $windowId,
int $windowType,
bool $server) : self{
31 $result->windowId = $windowId;
32 $result->windowType = $windowType;
33 $result->server = $server;
38 $this->windowId = $in->getByte();
39 $this->windowType = $in->
getByte();
44 $out->putByte($this->windowId);
45 $out->putByte($this->windowType);
46 $out->putBool($this->server);
50 return $handler->handleContainerClose($this);
encodePayload(PacketSerializer $out)
decodePayload(PacketSerializer $in)
static create(int $windowId, int $windowType, bool $server)
handle(PacketHandlerInterface $handler)