> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/net/minecraft/network/client/c0dpacketclosewindow.md).

# C0DPacketCloseWindow

A packet sent by the client to close a window (container/inventory).

### Extends

* [`Packet`](/api/net/minecraft/network/packet.md)

### Constructors

#### Constructor

> **new C0DPacketCloseWindow**(`windowId`): `C0DPacketCloseWindow`

Creates a new C0DPacketCloseWindow packet

**Parameters**

**windowId**

`number`

The ID of the window to close

**Returns**

`C0DPacketCloseWindow`

**Overrides**

`Packet.constructor`

### Methods

#### getPacketID()

> **getPacketID**(): `string`

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](/api/net/minecraft/network/packet.md).[`getPacketID`](/api/net/minecraft/network/packet.md#getpacketid)

***

#### getWindowId()

> **getWindowId**(): `number`

Gets the ID of the window being closed

**Returns**

`number`

The window ID

***

#### setWindowId()

> **setWindowId**(`windowId`): `void`

Sets the ID of the window being closed

**Parameters**

**windowId**

`number`

The new window ID

**Returns**

`void`
