Class StorageTypeNode
java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<E>
dev.satyrn.papermc.api.configuration.v1.EnumNode<StorageType>
dev.satyrn.papermc.api.configuration.v1.StorageTypeNode
- Direct Known Subclasses:
StorageTypeNode
Represents a configuration node which stores a
StorageType
value.- Since:
- 1.6.0
- Author:
- Isabel Maskrey
-
Constructor Summary
ConstructorDescriptionStorageTypeNode
(@NotNull ConfigurationNode<?> parent, @NotNull String name) Creates a new configuration node with a Log Level value. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull StorageType
Gets the default enum value.protected @NotNull StorageType
Parses the enum value.Methods inherited from class dev.satyrn.papermc.api.configuration.v1.EnumNode
defaultValue, value
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
-
StorageTypeNode
public StorageTypeNode(@NotNull @NotNull ConfigurationNode<?> parent, @NotNull @NotNull String name) Creates a new configuration node with a Log Level value.- Parameters:
parent
- The parent container.name
- The node's name.- Since:
- 1.6.0
-
-
Method Details
-
parse
@NotNull protected @NotNull StorageType parse(@NotNull @NotNull String value) throws IllegalArgumentException Parses the enum value.- Specified by:
parse
in classEnumNode<StorageType>
- Parameters:
value
- The string value from the config file- Returns:
- The parsed enum value.
- Throws:
IllegalArgumentException
- Thrown when the enum value fails to parse.- Since:
- 1.6.0
-
getDefault
Gets the default enum value.Defaults to
FLAT_FILE
.- Specified by:
getDefault
in classEnumNode<StorageType>
- Returns:
- The default enum value.
- Since:
- 1.6.0
-