Modifier and Type | Field and Description |
---|---|
private boolean |
changed |
private java.util.ArrayList<ConfigCategory> |
children |
private java.lang.String |
comment |
private java.lang.Class<? extends GuiConfigEntries.IConfigEntry> |
customEntryClass |
private java.lang.String |
languagekey |
private java.lang.String |
name |
ConfigCategory |
parent |
private java.util.Map<java.lang.String,Property> |
properties |
private java.util.List<java.lang.String> |
propertyOrder |
private int |
propNumber |
private boolean |
requiresMcRestart |
private boolean |
requiresWorldRestart |
private boolean |
showInGui |
Constructor and Description |
---|
ConfigCategory(java.lang.String name) |
ConfigCategory(java.lang.String name,
ConfigCategory parent) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsKey(java.lang.String key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<java.lang.String,Property>> |
entrySet() |
boolean |
equals(java.lang.Object obj) |
Property |
get(java.lang.Object key) |
Property |
get(java.lang.String key) |
java.util.Set<ConfigCategory> |
getChildren() |
java.lang.String |
getComment() |
java.lang.Class<? extends GuiConfigEntries.IConfigEntry> |
getConfigEntryClass() |
ConfigCategory |
getFirstParent() |
private java.lang.String |
getIndent(int indent) |
java.lang.String |
getLanguagekey() |
java.lang.String |
getName() |
java.util.List<Property> |
getOrderedValues() |
java.util.List<java.lang.String> |
getPropertyOrder() |
java.lang.String |
getQualifiedName() |
static java.lang.String |
getQualifiedName(java.lang.String name,
ConfigCategory parent) |
java.util.Map<java.lang.String,Property> |
getValues() |
boolean |
hasChanged() |
boolean |
isChild() |
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
Property |
put(java.lang.String key,
Property value) |
void |
putAll(java.util.Map<? extends java.lang.String,? extends Property> m) |
Property |
remove(java.lang.Object key) |
void |
removeChild(ConfigCategory child) |
boolean |
requiresMcRestart()
Gets whether or not this ConfigCategory requires Minecraft to be restarted when changed.
|
boolean |
requiresWorldRestart()
Returns whether or not this category is able to be edited while a world is running using the in-game Mod Options screen
as well as the Mods list screen, or only from the Mods list screen.
|
(package private) void |
resetChangedState() |
void |
setComment(java.lang.String comment) |
ConfigCategory |
setConfigEntryClass(java.lang.Class<? extends GuiConfigEntries.IConfigEntry> clazz) |
ConfigCategory |
setLanguageKey(java.lang.String languagekey) |
ConfigCategory |
setPropertyOrder(java.util.List<java.lang.String> propertyOrder) |
ConfigCategory |
setRequiresMcRestart(boolean requiresMcRestart)
Sets whether or not this ConfigCategory requires Minecraft to be restarted when changed.
|
ConfigCategory |
setRequiresWorldRestart(boolean requiresWorldRestart)
Sets the flag for whether or not this category can be edited while a world is running.
|
ConfigCategory |
setShowInGui(boolean showInGui)
Sets whether or not this ConfigCategory should be allowed to show on config GUIs.
|
boolean |
showInGui()
Gets whether or not this ConfigCategory should be allowed to show on config GUIs.
|
int |
size() |
java.util.Collection<Property> |
values() |
private void |
write(java.io.BufferedWriter out,
boolean new_line,
java.lang.String... data) |
void |
write(java.io.BufferedWriter out,
int indent) |
private void |
write(java.io.BufferedWriter out,
java.lang.String... data) |
private java.lang.String name
private java.lang.String comment
private java.lang.String languagekey
private java.util.ArrayList<ConfigCategory> children
private java.util.Map<java.lang.String,Property> properties
private int propNumber
public final ConfigCategory parent
private boolean changed
private boolean requiresWorldRestart
private boolean showInGui
private boolean requiresMcRestart
private java.lang.Class<? extends GuiConfigEntries.IConfigEntry> customEntryClass
private java.util.List<java.lang.String> propertyOrder
public ConfigCategory(java.lang.String name)
public ConfigCategory(java.lang.String name, ConfigCategory parent)
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Map<java.lang.String,Property>
equals
in class java.lang.Object
public java.lang.String getName()
public java.lang.String getQualifiedName()
public static java.lang.String getQualifiedName(java.lang.String name, ConfigCategory parent)
public ConfigCategory getFirstParent()
public boolean isChild()
public java.util.Map<java.lang.String,Property> getValues()
public java.util.List<Property> getOrderedValues()
public ConfigCategory setConfigEntryClass(java.lang.Class<? extends GuiConfigEntries.IConfigEntry> clazz)
public java.lang.Class<? extends GuiConfigEntries.IConfigEntry> getConfigEntryClass()
public ConfigCategory setLanguageKey(java.lang.String languagekey)
public java.lang.String getLanguagekey()
public void setComment(java.lang.String comment)
public java.lang.String getComment()
public ConfigCategory setRequiresWorldRestart(boolean requiresWorldRestart)
public boolean requiresWorldRestart()
public ConfigCategory setShowInGui(boolean showInGui)
public boolean showInGui()
public ConfigCategory setRequiresMcRestart(boolean requiresMcRestart)
public boolean requiresMcRestart()
public ConfigCategory setPropertyOrder(java.util.List<java.lang.String> propertyOrder)
public java.util.List<java.lang.String> getPropertyOrder()
public boolean containsKey(java.lang.String key)
public Property get(java.lang.String key)
private void write(java.io.BufferedWriter out, java.lang.String... data) throws java.io.IOException
java.io.IOException
private void write(java.io.BufferedWriter out, boolean new_line, java.lang.String... data) throws java.io.IOException
java.io.IOException
public void write(java.io.BufferedWriter out, int indent) throws java.io.IOException
java.io.IOException
private java.lang.String getIndent(int indent)
public boolean hasChanged()
void resetChangedState()
public int size()
size
in interface java.util.Map<java.lang.String,Property>
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,Property>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,Property>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<java.lang.String,Property>
public Property get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,Property>
public Property put(java.lang.String key, Property value)
put
in interface java.util.Map<java.lang.String,Property>
public Property remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.String,Property>
public void putAll(java.util.Map<? extends java.lang.String,? extends Property> m)
putAll
in interface java.util.Map<java.lang.String,Property>
public void clear()
clear
in interface java.util.Map<java.lang.String,Property>
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,Property>
public java.util.Collection<Property> values()
values
in interface java.util.Map<java.lang.String,Property>
public java.util.Set<java.util.Map.Entry<java.lang.String,Property>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,Property>
public java.util.Set<ConfigCategory> getChildren()
public void removeChild(ConfigCategory child)