Package org.kingdoms.config.accessor
Interface KeyedConfigAccessor
- All Superinterfaces:
DefaultableConfigAccessor
- All Known Implementing Classes:
KeyedYamlConfigAccessor,KingdomsConfig
A config value with a pre-defined path that's ready to return a value of a specific type.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault KeyedConfigAccessordefault KeyedConfigAccessorforWorld(org.bukkit.entity.Entity entity) <T> Tget(org.kingdoms.utils.config.NodeInterpreter<T> nodeInterpreter) <T> Tget(org.kingdoms.utils.config.NodeInterpreter<T> interpreter, org.kingdoms.utils.config.NodeInterpretContext<T> ctx) booleandoubledefault <T extends Enum<T>>
TintgetInt()longgetLong()org.kingdoms.utils.compilers.expressions.MathExpressionorg.snakeyaml.nodes.NodegetNode()default @Nullable DurationgetTime()default @Nullable Durationdefault Longdefault LonggetTimeMillis(TimeUnit timeUnit) Deprecated.booleanisSet()withOption(String first, String second) withProperty(String property)
-
Method Details
-
noDefault
KeyedConfigAccessor noDefault()- Specified by:
noDefaultin interfaceDefaultableConfigAccessor
-
withProperty
-
applyProperties
KeyedConfigAccessor applyProperties() -
withOption
-
forWorld
-
clearExtras
KeyedYamlConfigAccessor clearExtras() -
forWorld
-
getOptionPath
String getOptionPath() -
isSet
boolean isSet() -
getString
String getString() -
getNode
org.snakeyaml.nodes.Node getNode() -
getMathExpression
org.kingdoms.utils.compilers.expressions.MathExpression getMathExpression() -
get
<T> T get(org.kingdoms.utils.config.NodeInterpreter<T> nodeInterpreter) -
get
<T> T get(org.kingdoms.utils.config.NodeInterpreter<T> interpreter, org.kingdoms.utils.config.NodeInterpretContext<T> ctx) -
getStringList
-
getSectionKeys
-
getSection
ConfigAccessor getSection() -
getBoolean
boolean getBoolean() -
getIntegerList
-
getInt
int getInt() -
getDouble
double getDouble() -
getLong
long getLong() -
getTimeMillis
-
getTime
-
getTime
-
getTimeMillis
Deprecated. -
getEnum
-