# DelayedPacket

A packet that is delayed until we release it.

### Properties

#### packet

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

The packet that has been delayed.

***

#### time

> `readonly` **time**: `number`

The original time this packet was send.

### Methods

#### direction()

> **direction**(): [`PacketDirection`](https://scripting.breeze.rip/api/enum_types/packetdirection)

Returns the direction of the packet, either IN or OUT.

**Returns**

[`PacketDirection`](https://scripting.breeze.rip/api/enum_types/packetdirection)

***

#### hasAged()

> **hasAged**(`ms`): `boolean`

Checks if this packet has aged beyond the specified time.

**Parameters**

**ms**

`number`

The number of milliseconds.

**Returns**

`boolean`

True if this packet has aged beyond the given time, false otherwise.
