Class ConfigurationContainer
java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<Void>
dev.satyrn.papermc.api.configuration.v1.ConfigurationContainer
- Direct Known Subclasses:
MySQLConfiguration
@Deprecated(since="1.9.0")
public abstract class ConfigurationContainer
extends ConfigurationNode<Void>
Deprecated.
Represents a base type for a class which contains several other configuration containers and/or nodes.
- Since:
- 1.0.0
- Author:
- Isabel Maskrey
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConfigurationContainer(@NotNull ConfigurationNode<?> parent, @Nullable String name) Deprecated.Initializes the configuration container as a child of another container.protectedConfigurationContainer(@NotNull org.bukkit.configuration.Configuration config) Deprecated, for removal: This API element is subject to removal in a future version.Since 1.6.0.protectedConfigurationContainer(@NotNull org.bukkit.plugin.Plugin plugin) Deprecated.Initializes the configuration container as a root container.protectedConfigurationContainer(@NotNull org.bukkit.plugin.Plugin plugin, @NotNull org.bukkit.configuration.Configuration config) Deprecated, for removal: This API element is subject to removal in a future version.since 1.9.0. -
Method Summary
Modifier and TypeMethodDescriptionfinal @Nullable VoidDeprecated.Gets the default value of the node.voidsetConfigValue(@Nullable Void value) Deprecated.Sets the value of the node.voidtoString(@NotNull StringBuilder stringBuilder) Deprecated.Builds the string representation of the node.final @Nullable Voidvalue()Deprecated.Gets the current 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, setInlineComments, setInlineComments, setValue, toString
-
Constructor Details
-
ConfigurationContainer
protected ConfigurationContainer(@NotNull @NotNull ConfigurationNode<?> parent, @Nullable @Nullable String name) Deprecated.Initializes the configuration container as a child of another container.- Parameters:
parent- The node parent.name- The name of the container.- Since:
- 1.0.0
-
ConfigurationContainer
@Deprecated(since="1.6.0", forRemoval=true) protected ConfigurationContainer(@NotNull @NotNull org.bukkit.configuration.Configuration config) Deprecated, for removal: This API element is subject to removal in a future version.Since 1.6.0. Use constructors which specify parent plugin instead. Will be removed in a future version.Initializes the configuration container as a root container.- Parameters:
config- The configuration instance.- Since:
- 1.0.0
-
ConfigurationContainer
protected ConfigurationContainer(@NotNull @NotNull org.bukkit.plugin.Plugin plugin) Deprecated.Initializes the configuration container as a root container.- Parameters:
plugin- The plugin instance.- Since:
- 1.0.0
-
ConfigurationContainer
@Deprecated(since="1.9.0", forRemoval=true) protected ConfigurationContainer(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, @NotNull @NotNull org.bukkit.configuration.Configuration config) Deprecated, for removal: This API element is subject to removal in a future version.since 1.9.0. To be removed in a future version.Initializes the configuration container as a root container.- Parameters:
plugin- The plugin instance.config- The configuration instance.- Since:
- 1.6.0
-
-
Method Details
-
value
Deprecated.Gets the current value of the node.Always returns null for configuration containers.
- Specified by:
valuein classConfigurationNode<Void>- Returns:
null- Since:
- 1.0-SNAPSHOT
-
defaultValue
Deprecated.Gets the default value of the node.Always returns null for configuration containers.
- Specified by:
defaultValuein classConfigurationNode<Void>- Returns:
- The default value.
- Since:
- 1.3.0
-
setConfigValue
Deprecated.Sets the value of the node.Does nothing for configuration containers.
- Overrides:
setConfigValuein classConfigurationNode<Void>- Parameters:
value- The value to set.- Since:
- 1.10.0
-
toString
Deprecated.Builds the string representation of the node.By default,
ContainerNodes return just the name of the node.- Overrides:
toStringin classConfigurationNode<Void>- Parameters:
stringBuilder- TheStringBuilderwith which to build the string.- Since:
- 1.10.0
-
ContainerNodeandRootNodeinstead. Will be removed in a future version.