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
-
ClassDescriptionA square icon for a widget such as a button.An icon that draws an item stack.An icon that draws a texture.