| Constructor and Description |
|---|
ItemIcon(net.minecraft.item.Item item)
Constructs an item icon with the item's default stack.
|
ItemIcon(net.minecraft.item.ItemStack stack)
Constructs an item icon.
|
| Modifier and Type | Method and Description |
|---|---|
void |
paint(net.minecraft.client.util.math.MatrixStack matrices,
int x,
int y,
int size)
Paints this icon.
|
public ItemIcon(net.minecraft.item.ItemStack stack)
stack - the drawn item stackjava.lang.NullPointerException - if the stack is nullpublic ItemIcon(net.minecraft.item.Item item)
item - the drawn itemjava.lang.NullPointerException - if the item is null@Environment(value=CLIENT)
public void paint(net.minecraft.client.util.math.MatrixStack matrices,
int x,
int y,
int size)
Icon