Class StringNode
java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<String>
dev.satyrn.papermc.api.configuration.v1.StringNode
Represents a configuration node with a string value.
- Since:
- 1.0.0
- Author:
- Isabel Maskrey
-
Constructor Summary
ConstructorDescriptionStringNode
(@NotNull ConfigurationNode<?> parent, @NotNull String name) Creates a new configuration node with a string value. -
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
-
StringNode
Creates a new configuration node with a string value.- Parameters:
parent
- The parent container.name
- The node's name.- Since:
- 1.0.0
-
-
Method Details
-
value
Returns the string value of the node.- Specified by:
value
in classConfigurationNode<String>
- Returns:
- The string value.
- Since:
- 1.0.0
-
defaultValue
Gets the default value of the node.Defaults to
null
.- Specified by:
defaultValue
in classConfigurationNode<String>
- Returns:
- The default value.
- Since:
- 1.3.0
-