# ItemStack

Describes a minecraft item-stack.

### Properties

#### itemDamage

> `readonly` **itemDamage**: `number`

***

#### maxStackSize

> `readonly` **maxStackSize**: `number`

***

#### stackSize

> **stackSize**: `number`

The amount of items in the stack.

### Methods

#### exists()

> **exists**(): `boolean`

**Returns**

`boolean`

Whether the item exists (not null/empty).

***

#### getDisplayName()

> **getDisplayName**(): `string`

**Returns**

`string`

The name of the item.

***

#### getItemId()

> **getItemId**(): `number`

**Returns**

`number`

The id of the item.

***

#### getRemainingDurability()

> **getRemainingDurability**(): `number`

**Returns**

`number`

The remaining durability of the item.

***

#### getUnlocalizedName()

> **getUnlocalizedName**(): `string`

**Returns**

`string`

The unlocalized name of the item.

***

#### hasEnchantments()

> **hasEnchantments**(): `boolean`

**Returns**

`boolean`

Whether the item has enchantments.

***

#### isAxe()

> **isAxe**(): `boolean`

**Returns**

`boolean`

Whether the item is an axe.

***

#### isBlock()

> **isBlock**(): `boolean`

**Returns**

`boolean`

Whether the item is a block.

***

#### isBroken()

> **isBroken**(): `boolean`

**Returns**

`boolean`

Whether the item is broken.

***

#### isDamageable()

> **isDamageable**(): `boolean`

**Returns**

`boolean`

Whether the item can be damaged.

***

#### isHoe()

> **isHoe**(): `boolean`

**Returns**

`boolean`

Whether the item is a hoe.

***

#### isPickaxe()

> **isPickaxe**(): `boolean`

**Returns**

`boolean`

Whether the item is a pickaxe.

***

#### isShovel()

> **isShovel**(): `boolean`

**Returns**

`boolean`

Whether the item is a shovel.

***

#### isStackable()

> **isStackable**(): `boolean`

**Returns**

`boolean`

Whether the item can be stacked.

***

#### isSword()

> **isSword**(): `boolean`

**Returns**

`boolean`

Whether the item is a sword.

***

#### isTool()

> **isTool**(): `boolean`

**Returns**

`boolean`

Whether the item is a tool or weapon.

***

#### setNBTData()

> **setNBTData**(): `string`

Sets the NBT data of the item.

**Returns**

`string`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://scripting.breeze.rip/api/net/minecraft/item/itemstack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
