| Constructor and Description |
|---|
Option(T key)
Instantiates a new
UISelect.Option. |
Option(T key,
java.lang.String label)
Instantiates a new
UISelect.Option with a label. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(UISelect<T> select,
GuiRenderer renderer,
int x,
int y,
int z,
float partialTick,
boolean hovered,
boolean isTop) |
boolean |
equals(java.lang.Object obj) |
int |
getHeight(UISelect<T> select) |
T |
getKey()
Gets the key of this
UISelect.Option. |
java.lang.String |
getLabel()
Gets the base label of this
UISelect.Option. |
java.lang.String |
getLabel(java.lang.String pattern)
Gets the label of this
UISelect.Option using a pattern. |
boolean |
isDisabled()
Checks if this
UISelect.Option is disabled. |
void |
setDisabled(boolean disabled)
Sets the disabled state of this
UISelect.Option. |
void |
setLabel(java.lang.String label)
Sets the label for this
UISelect.Option. |
public Option(T key)
UISelect.Option.key - the keypublic Option(T key, java.lang.String label)
UISelect.Option with a label.key - the keylabel - the labelpublic T getKey()
UISelect.Option.public java.lang.String getLabel(java.lang.String pattern)
UISelect.Option using a pattern.pattern - the patternpublic java.lang.String getLabel()
UISelect.Option.public void setLabel(java.lang.String label)
UISelect.Option.label - the new labelpublic boolean isDisabled()
UISelect.Option is disabled.public void setDisabled(boolean disabled)
UISelect.Option.disabled - the new disabledpublic void draw(UISelect<T> select, GuiRenderer renderer, int x, int y, int z, float partialTick, boolean hovered, boolean isTop)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object