public interface IFieldWrapper
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategory()
i.e.
|
java.lang.String[] |
getKeys() |
ITypeAdapter |
getTypeAdapter() |
java.lang.Object |
getValue(java.lang.String key) |
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)
Deprecated.
|
default void |
setupConfiguration(Configuration cfg,
java.lang.String desc,
java.lang.String langKey,
boolean reqMCRestart,
boolean reqWorldRestart,
boolean hasSlidingControl) |
void |
setValue(java.lang.String key,
java.lang.Object value) |
ITypeAdapter getTypeAdapter()
java.lang.String[] getKeys()
java.lang.Object getValue(java.lang.String key)
key
- the fully qualified property keyvoid setValue(java.lang.String key, java.lang.Object value)
key
- the fully qualified property keyvalue
- the target value of the property associated with the keyboolean hasKey(java.lang.String key)
key
- a fully qualified property keyboolean handlesKey(java.lang.String key)
key
- a fully qualified property key@Deprecated void setupConfiguration(Configuration cfg, java.lang.String desc, java.lang.String langKey, boolean reqMCRestart, boolean reqWorldRestart)
default 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
java.lang.String getCategory()