public class OptionList extends OptionButton
| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList<Option> |
optionList |
java.util.HashMap<java.lang.String,Option> |
options |
static OptionList |
root |
guiTex, prefix, text, tooltip| Constructor and Description |
|---|
OptionList(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(Option o) |
void |
addSorted(Option o) |
static java.lang.String |
child(java.lang.String fullName) |
GuiOptionList |
getGui(GuiScreen parent,
OptionList list,
boolean world)
Create an instance of a GuiOptionList subclass for the given parameter list
|
Option |
getOption(java.lang.String fullName) |
static OptionList |
getOptionList(java.lang.String fullName) |
void |
onAdded(GuiOptionList.OptionScrollSlot slot) |
boolean |
onClick(int button) |
void |
openGui(GuiScreen parent,
boolean world) |
static java.lang.String |
parent(java.lang.String fullName) |
static void |
setOptionList(OptionList list) |
boolean |
showWorldSelector() |
void |
synthesizeEnvironment(boolean world)
Adds this option to a temporary slot and gui for internal setting manipulation.
|
buttonSize, draw, drawButton, drawPrefix, getButtonTex, getButtonText, getPrefix, getTextColour, getTooltip, handleTooltip, isEnabled, mouseClicked, pointInside, setEnabledactiveTag, activeTag, configBase, configName, configSet, copyGlobal, copyGlobal, copyGlobals, defaulting, defaulting, fullName, getHeight, getTag, getTag, globalConfigSet, hasWorldOverride, keyTyped, namespaced, onAdded, onMouseClicked, playClickSound, renderTag, renderTag, translateN, update, useGlobal, useGlobals, worldConfig, worldConfigSet, worldSpecific, worldSpecificpublic static final OptionList root
public java.util.ArrayList<Option> optionList
public java.util.HashMap<java.lang.String,Option> options
public static OptionList getOptionList(java.lang.String fullName)
public static void setOptionList(OptionList list)
public static java.lang.String parent(java.lang.String fullName)
public static java.lang.String child(java.lang.String fullName)
public Option getOption(java.lang.String fullName)
public void addOption(Option o)
public void addSorted(Option o)
public GuiOptionList getGui(GuiScreen parent, OptionList list, boolean world)
parent - The parent screen for the back buttonlist - The option list to be displayed in the guiworld - true if in world config mode, false for globalpublic void openGui(GuiScreen parent,
boolean world)
public void synthesizeEnvironment(boolean world)
public boolean onClick(int button)
onClick in class OptionButtonpublic boolean showWorldSelector()
showWorldSelector in class Optionpublic void onAdded(GuiOptionList.OptionScrollSlot slot)