TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ClassicUO/classicuo-web/llms.txt
Use this file to discover all available pages before exploring further.
Item class represents any physical object in the game world — weapons, armour, potions, bags, chests, gold, and everything else that is not a mobile entity. Item extends the base Entity class, adding item-specific properties such as amount, container, contents, and layer.
Items are returned by functions like client.findType(), client.findObject(), client.findAllItemsOfType(), and client.findItemOnLayer().
Properties
Item-Specific Properties
amount
container
0 if the item is on the ground or has no container.
contents
Item objects directly inside this item, if it is a container. Returns undefined for non-container items.
contents only returns direct children. To search nested containers recursively, use client.findType() with a range parameter controlling search depth.layer
Layers enum to compare values.
Inherited from Entity
| Property | Type | Description |
|---|---|---|
serial | number | Unique entity serial. |
name | string | Display name. Empty string if not yet known to the client. |
graphic | number | Graphic/art ID. Returns 0 if off-screen. |
hue | number | Hue/colour. Returns 0 if off-screen. |
hits | number | Durability current value (returns 0 if unknown). |
maxHits | number | Maximum durability (returns 0 if unknown). |
isHidden | boolean | Whether the item is hidden. |
x | number | X coordinate (0 if off-screen or in a container). |
y | number | Y coordinate (0 if off-screen or in a container). |
z | number | Z coordinate (0 if off-screen or in a container). |
direction | number | Direction value. Relevant for some multi-tile items. |