hudRenderer.drawItemStack

Call Signature

drawItemStack(stack, x, y, size): void

Draws an item stack scaled to the given size, with count and durability overlay.

Parameters

stack

ItemStack

The item stack to draw.

x

number

The x position.

y

number

The y position.

size

number

The size in pixels (native item size is 16).

Returns

void

Call Signature

drawItemStack(stack, x, y, size, overlay): void

Draws an item stack scaled to the given size, with optional count and durability overlay.

Parameters

stack

ItemStack

The item stack to draw.

x

number

The x position.

y

number

The y position.

size

number

The size in pixels (native item size is 16).

overlay

boolean

Whether to draw the stack count and durability bar.

Returns

void

Last updated