# S0DPacketCollectItem

Represents a packet that is sent when an item is collected by an entity

### Extends

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

### Methods

#### getCollectedItemEntityID()

> **getCollectedItemEntityID**(): `number`

Gets the ID of the item entity that was collected

**Returns**

`number`

The collected item's entity ID

***

#### getEntityID()

> **getEntityID**(): `number`

Gets the ID of the entity that collected the item

**Returns**

`number`

The collector's entity ID

***

#### 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)
