hudRenderer.drawItemStack
Last updated
drawItemStack(
stack,x,y,size):void
Draws an item stack scaled to the given size, with count and durability overlay.
stack
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).
void
drawItemStack(
stack,x,y,size,overlay):void
Draws an item stack scaled to the given size, with optional count and durability overlay.
stack
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.
void
Last updated