Class ChildNodeContext
- java.lang.Object
-
- org.geysermc.configutils.node.context.NodeContext
-
- org.geysermc.configutils.node.context.ChildNodeContext
-
public class ChildNodeContext extends NodeContext
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchanged()RegisteredCodecscodecs()intconfigVersion()java.lang.StringfullKey()Returns the full key of the node.@Nullable java.lang.Stringkey()Returns the key of this node, or null if this is the root node.voidmarkChanged()NodeOptionsoptions()-
Methods inherited from class org.geysermc.configutils.node.context.NodeContext
codec, codecFor, createChildContext, init, meta, type
-
-
-
-
Method Detail
-
options
public NodeOptions options()
- Specified by:
optionsin classNodeContext
-
codecs
public RegisteredCodecs codecs()
- Specified by:
codecsin classNodeContext
-
configVersion
public int configVersion()
- Specified by:
configVersionin classNodeContext
-
fullKey
public java.lang.String fullKey()
Description copied from class:NodeContextReturns the full key of the node. This combines the parent full key (if it has a parent) and its own key. In contrast toNodeContext.key(), the root node will return an empty string instead of null.- Specified by:
fullKeyin classNodeContext
-
key
public @Nullable java.lang.String key()
Returns the key of this node, or null if this is the root node.- Specified by:
keyin classNodeContext
-
markChanged
public void markChanged()
- Overrides:
markChangedin classNodeContext
-
changed
public boolean changed()
- Overrides:
changedin classNodeContext
-
-