Class StringNode

java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<String>
dev.satyrn.papermc.api.configuration.v1.StringNode

public class StringNode extends ConfigurationNode<String>
Represents a configuration node with a string value.
Since:
1.0.0
Author:
Isabel Maskrey
  • Constructor Details

    • StringNode

      public StringNode(@NotNull @NotNull ConfigurationNode<?> parent, @NotNull @NotNull String name)
      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

      @Nullable public @Nullable String value()
      Returns the string value of the node.
      Specified by:
      value in class ConfigurationNode<String>
      Returns:
      The string value.
      Since:
      1.0.0
    • defaultValue

      @Nullable public @Nullable String defaultValue()
      Gets the default value of the node.

      Defaults to null.

      Specified by:
      defaultValue in class ConfigurationNode<String>
      Returns:
      The default value.
      Since:
      1.3.0