Class ConfigEntry<T>
java.lang.Object
se.itssimple.obsidianweave.data.ConfigEntry<T>
- Type Parameters:
T- The type of the config value.
Represents a single configuration entry for a mod in Obsidian Weave.
Stores key, type, default value, language keys, and platform-specific binding.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the language key for the entry comment/tooltip.Gets the default value for this entry.Gets the supplier for the default value.Gets the internal cached value for this entry.getKey()Gets the config key.Gets the language key for the entry name.Gets the platform-specific binding for this entry.getType()Gets the type of the config value.getValue()Gets the current value of this config entry from the platform helper.setCommentLangKey(String commentLangKey) Sets the language key for the entry comment/tooltip.voidsetInternalCachedValue(T internalCachedValue) Sets the internal cached value for this entry.setNameLangKey(String nameLangKey) Sets the language key for the entry name.voidsetPlatformBinding(Object platformBinding) Sets the platform-specific binding for this entry.voidSets the value of this config entry using the platform helper.
-
Constructor Details
-
ConfigEntry
-
-
Method Details
-
getKey
-
getDefaultValueSupplier
-
getType
-
getDefaultValue
-
getNameLangKey
Gets the language key for the entry name.- Returns:
- The name language key.
-
setNameLangKey
Sets the language key for the entry name.- Parameters:
nameLangKey- The name language key.- Returns:
- This config entry.
-
getCommentLangKey
Gets the language key for the entry comment/tooltip.- Returns:
- The comment language key.
-
setCommentLangKey
Sets the language key for the entry comment/tooltip.- Parameters:
commentLangKey- The comment language key.- Returns:
- This config entry.
-
getValue
Gets the current value of this config entry from the platform helper.- Returns:
- The config value.
-
setValue
Sets the value of this config entry using the platform helper.- Parameters:
value- The value to set.
-
getInternalCachedValue
Gets the internal cached value for this entry.- Returns:
- The cached value.
-
setInternalCachedValue
Sets the internal cached value for this entry.- Parameters:
internalCachedValue- The value to cache.
-
getPlatformBinding
Gets the platform-specific binding for this entry.- Returns:
- The platform binding object.
-
setPlatformBinding
Sets the platform-specific binding for this entry.- Parameters:
platformBinding- The platform binding object.
-