Package io.github.cottonmc.cotton.gui.widget.icon


package io.github.cottonmc.cotton.gui.widget.icon
The icon API for displaying various icons on widgets.

For example, you can attach an icon to a button:

 
 // This is a button with an apple item as the icon:
 WButton button = new WButton(new ItemIcon(new ItemStack(Items.APPLE)), new LiteralText("Apple button"));
 
 
Since:
2.2.0