Class NullNode
java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<Object>
dev.satyrn.papermc.api.configuration.v1.NullNode
A node which always contains a null value.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNullNode(@NotNull ConfigurationNode<?> parent, @Nullable String name) Initializes a new Configuration node. -
Method Summary
Methods inherited from class dev.satyrn.papermc.api.configuration.v1.ConfigurationNode
addChild, equals, getBasePath, getBasePath, getChildren, getComments, getComments, getConfig, getInlineComments, getInlineComments, getLogger, getName, getPath, getPath, getPlugin, getPriority, getSLF4JLogger, getValueNodeName, getValuePath, getValuePath, hasChildren, hasName, isSubNode, save, setComments, setComments, setConfigValue, setInlineComments, setInlineComments, setValue, toString, toString
-
Constructor Details
-
NullNode
Initializes a new Configuration node.- Parameters:
parent- The parent node.name- The node name.- Since:
- 1.0.0
-
-
Method Details
-
value
Gets the value of the node.- Specified by:
valuein classConfigurationNode<Object>- Returns:
- The value.
- Since:
- 1.0.0
-
defaultValue
Gets the default value of the node.- Specified by:
defaultValuein classConfigurationNode<Object>- Returns:
- The default value.
- Since:
- 1.3.0
-