Class DoubleNode
java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<Double>
dev.satyrn.papermc.api.configuration.v1.DoubleNode
Represents a configuration node with a double-precision floating point value.
- Since:
- 1.0.0
- Author:
- Isabel Maskrey
-
Constructor Summary
ConstructorDescriptionDoubleNode
(@NotNull ConfigurationNode<?> parent, @NotNull String name) Creates a new configuration node with a double-precision floating point value.DoubleNode
(@NotNull ConfigurationNode<?> parent, @NotNull String name, double minValue, double maxValue) Creates a new configuration node with a double-precision floating point 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, toString, toString
-
Constructor Details
-
DoubleNode
Creates a new configuration node with a double-precision floating point value.- Parameters:
parent
- The parent container.name
- The node name.- Since:
- 1.0.0
-
DoubleNode
public DoubleNode(@NotNull @NotNull ConfigurationNode<?> parent, @NotNull @NotNull String name, double minValue, double maxValue) Creates a new configuration node with a double-precision floating point value.- Parameters:
parent
- The parent container.name
- The node name.minValue
- The minimum value of the node.maxValue
- The maximum value of the node.- Since:
- 1.6.2
-
-
Method Details
-
value
Returns the double-precision floating point value of the node.- Specified by:
value
in classConfigurationNode<Double>
- Returns:
- The double-precision floating point value.
- Since:
- 1.0.0
-
defaultValue
Gets the default value of the node.Defaults to
0D
.- Specified by:
defaultValue
in classConfigurationNode<Double>
- Returns:
- The default value.
- Since:
- 1.3.0
-
setValue
Sets the value of the node.- Overrides:
setValue
in classConfigurationNode<Double>
- Parameters:
value
- The value to set.- Since:
- 1.9.0
-