Class KeyedYamlConfigAccessor
java.lang.Object
org.kingdoms.config.implementation.KeyedYamlConfigAccessor
- All Implemented Interfaces:
Cloneable,DefaultableConfigAccessor,EnumConfig,KeyedConfigAccessor
public class KeyedYamlConfigAccessor
extends Object
implements KeyedConfigAccessor, EnumConfig, Cloneable
-
Constructor Summary
ConstructorsConstructorDescriptionKeyedYamlConfigAccessor(@NotNull ConfigSection config, @Nullable ConfigSection defaults, @NotNull ConfigPath option) KeyedYamlConfigAccessor(@NotNull YamlContainer adapter, @NotNull ConfigPath option) -
Method Summary
Modifier and TypeMethodDescriptionprotected KeyedYamlConfigAccessorclone()<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) booleanorg.kingdoms.utils.compilers.expressions.ConditionalExpressiondoubleintgetInt()longgetLong()org.kingdoms.utils.compilers.expressions.MathExpressionorg.snakeyaml.nodes.NodegetNode()booleanisInWorld(org.bukkit.entity.Entity entity) booleanisInWorld(org.bukkit.World world) booleanisSet()booleanmatchString(String string) toString()withOption(String first, String second) withProperty(String prop) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kingdoms.config.accessor.KeyedConfigAccessor
forWorld, forWorld, getEnum, getTime, getTime, getTimeMillis, getTimeMillis
-
Constructor Details
-
KeyedYamlConfigAccessor
public KeyedYamlConfigAccessor(@NotNull @NotNull ConfigSection config, @Nullable @Nullable ConfigSection defaults, @NotNull @NotNull ConfigPath option) -
KeyedYamlConfigAccessor
public KeyedYamlConfigAccessor(@NotNull @NotNull YamlContainer adapter, @NotNull @NotNull ConfigPath option)
-
-
Method Details
-
isInWorld
public boolean isInWorld(org.bukkit.entity.Entity entity) -
isInWorld
public boolean isInWorld(org.bukkit.World world) -
matchString
-
withProperty
- Specified by:
withPropertyin interfaceKeyedConfigAccessor
-
clearExtras
- Specified by:
clearExtrasin interfaceKeyedConfigAccessor
-
getOptionPath
- Specified by:
getOptionPathin interfaceKeyedConfigAccessor
-
noDefault
- Specified by:
noDefaultin interfaceDefaultableConfigAccessor- Specified by:
noDefaultin interfaceKeyedConfigAccessor
-
withOption
- Specified by:
withOptionin interfaceKeyedConfigAccessor
-
applyProperties
- Specified by:
applyPropertiesin interfaceKeyedConfigAccessor
-
getNode
public org.snakeyaml.nodes.Node getNode()- Specified by:
getNodein interfaceKeyedConfigAccessor
-
isSet
public boolean isSet()- Specified by:
isSetin interfaceKeyedConfigAccessor
-
getString
- Specified by:
getStringin interfaceKeyedConfigAccessor
-
getMathExpression
public org.kingdoms.utils.compilers.expressions.MathExpression getMathExpression()- Specified by:
getMathExpressionin interfaceKeyedConfigAccessor
-
get
public <T> T get(org.kingdoms.utils.config.NodeInterpreter<T> nodeInterpreter) - Specified by:
getin interfaceKeyedConfigAccessor
-
get
public <T> T get(org.kingdoms.utils.config.NodeInterpreter<T> interpreter, org.kingdoms.utils.config.NodeInterpretContext<T> ctx) - Specified by:
getin interfaceKeyedConfigAccessor
-
getCondition
public org.kingdoms.utils.compilers.expressions.ConditionalExpression getCondition() -
getStringList
- Specified by:
getStringListin interfaceKeyedConfigAccessor
-
getSectionKeys
- Specified by:
getSectionKeysin interfaceKeyedConfigAccessor
-
getBoolean
public boolean getBoolean()- Specified by:
getBooleanin interfaceKeyedConfigAccessor
-
getIntegerList
- Specified by:
getIntegerListin interfaceKeyedConfigAccessor
-
getInt
public int getInt()- Specified by:
getIntin interfaceKeyedConfigAccessor
-
getDouble
public double getDouble()- Specified by:
getDoublein interfaceKeyedConfigAccessor
-
getLong
public long getLong()- Specified by:
getLongin interfaceKeyedConfigAccessor
-
getSection
- Specified by:
getSectionin interfaceKeyedConfigAccessor
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
toString
-
getManager
- Specified by:
getManagerin interfaceEnumConfig
-