Constructor and Description |
---|
UISelect.Option(T key)
Instantiates a new
UISelect.Option . |
UISelect.Option(T key,
java.lang.String label)
Instantiates a new
UISelect.Option with a label. |
Modifier and Type | Method and Description |
---|---|
void |
draw(UISelect select,
GuiRenderer renderer,
int x,
int y,
int z,
float partialTick,
boolean hovered,
boolean isTop) |
boolean |
equals(java.lang.Object obj) |
int |
getHeight() |
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 UISelect.Option(T key)
UISelect.Option
.key
- the keypublic UISelect.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 int getHeight()
public void draw(UISelect 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