# C0DPacketCloseWindow

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

### Extends

* [`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet)

### 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`](https://scripting.breeze.rip/api/net/minecraft/network/packet).[`getPacketID`](https://scripting.breeze.rip/api/net/minecraft/packet#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`
