drawItemStack(stack, x, y, size): void
stack
x
y
size
void
Draws an item stack scaled to the given size, with count and durability overlay.
ItemStack
The item stack to draw.
number
The x position.
The y position.
The size in pixels (native item size is 16).
drawItemStack(stack, x, y, size, overlay): void
overlay
Draws an item stack scaled to the given size, with optional count and durability overlay.
boolean
Whether to draw the stack count and durability bar.
Last updated 12 hours ago