private abstract static class FieldWrapper.SingleValueFieldWrapper extends FieldWrapper
FieldWrapper.BeanEntry<K,V>
category, field, instance, name
Modifier | Constructor and Description |
---|---|
private |
SingleValueFieldWrapper(java.lang.String category,
java.lang.reflect.Field field,
java.lang.Object instance) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategory()
i.e.
|
java.lang.String[] |
getKeys() |
boolean |
handlesKey(java.lang.String key) |
boolean |
hasKey(java.lang.String key) |
void |
setupConfiguration(Configuration cfg,
java.lang.String desc,
java.lang.String langKey,
boolean reqMCRestart,
boolean reqWorldRestart,
boolean hasSlidingControl) |
get, hasWrapperFor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypeAdapter, getValue, setupConfiguration, setValue
private SingleValueFieldWrapper(java.lang.String category, java.lang.reflect.Field field, java.lang.Object instance)
public java.lang.String[] getKeys()
public boolean hasKey(java.lang.String key)
key
- a fully qualified property keypublic boolean handlesKey(java.lang.String key)
key
- a fully qualified property keypublic void setupConfiguration(Configuration cfg, java.lang.String desc, java.lang.String langKey, boolean reqMCRestart, boolean reqWorldRestart, boolean hasSlidingControl)
cfg
- The configuration object holding the propertiesdesc
- The properties descriptionlangKey
- The languageKey of the property, used in GUIreqMCRestart
- True, if a change in this property requires a restart of MinecraftreqWorldRestart
- True, if the world needs to be reloaded after changes to this propertyhasSlidingControl
- true if the property is going to have a slider control attached in the configuration UI;
works in conjunction with Config.RangeInt
and Config.RangeDouble
public java.lang.String getCategory()
IFieldWrapper