Class BigDecimalNode
java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<BigDecimal>
dev.satyrn.papermc.api.configuration.v1.BigDecimalNode
- Direct Known Subclasses:
BigDecimalNode
Represents a configurable BigDecimal value.
- Since:
- 1.3.0
- Author:
- Isabel Maskrey
-
Constructor Summary
ConstructorsConstructorDescriptionBigDecimalNode(@NotNull ConfigurationNode<?> parent, @NotNull String name) Initializes a new Configuration node. -
Method Summary
Modifier and TypeMethodDescription@NotNull BigDecimalGets the default value of the node.final @NotNull BigDecimalvalue()Gets the value of the node.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
-
BigDecimalNode
Initializes a new Configuration node.- Parameters:
parent- The parent node.name- The node's name.- Since:
- 1.3.0
-
-
Method Details
-
value
Gets the value of the node.- Specified by:
valuein classConfigurationNode<BigDecimal>- Returns:
- The value.
- Since:
- 1.3.0
-
defaultValue
Gets the default value of the node.Defaults to
ZERO.- Specified by:
defaultValuein classConfigurationNode<BigDecimal>- Returns:
- The default value.
- Since:
- 1.3.0
-