public class GuiIconProvider extends java.lang.Object implements IGuiIconProvider
| Modifier and Type | Field and Description |
|---|---|
protected Icon |
disabledIcon |
protected Icon |
hoveredIcon |
protected Icon |
icon |
| Constructor and Description |
|---|
GuiIconProvider(GuiIcon icon) |
GuiIconProvider(Icon icon,
Icon hoveredIcon,
Icon disabledIcon) |
| Modifier and Type | Method and Description |
|---|---|
Icon |
getIcon()
Gets the
Icon to use. |
Icon |
getIcon(UIComponent<?> component) |
void |
setDisabledIcon(Icon icon) |
void |
setHoveredIcon(Icon icon) |
void |
setIcon(Icon icon) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, create, create, isClientComponentgetComponent, getDependenciesprotected Icon icon
protected Icon hoveredIcon
protected Icon disabledIcon
public GuiIconProvider(GuiIcon icon)
public void setIcon(Icon icon)
public void setHoveredIcon(Icon icon)
public void setDisabledIcon(Icon icon)
public Icon getIcon()
IIconProviderIcon to use.getIcon in interface IIconProviderpublic Icon getIcon(UIComponent<?> component)
getIcon in interface IGuiIconProvider