Class MapListNode

java.lang.Object
dev.satyrn.papermc.api.configuration.v1.ConfigurationNode<List<Map<?,?>>>
dev.satyrn.papermc.api.configuration.v1.MapListNode

public class MapListNode extends ConfigurationNode<List<Map<?,?>>>
Represents a configuration node with a map list value.
Since:
1.0.0
Author:
Isabel Maskrey
  • Constructor Details

    • MapListNode

      public MapListNode(@NotNull @NotNull ConfigurationNode<?> parent, @NotNull @NotNull String name)
      Creates a new configuration node with a Map list value.
      Parameters:
      parent - The parent container.
      name - The node's name.
      Since:
      1.0.0
  • Method Details

    • value

      @NotNull public @NotNull @Unmodifiable List<Map<?,?>> value()
      Returns the entire configuration node as a map list.
      Specified by:
      value in class ConfigurationNode<List<Map<?,?>>>
      Returns:
      The entire configuration node as a map list.
      Since:
      1.0.0
    • defaultValue

      @NotNull public final @NotNull @Unmodifiable List<Map<?,?>> defaultValue()
      Gets the default value of the node.

      Defaults to an empty, unmodifiable list.

      Specified by:
      defaultValue in class ConfigurationNode<List<Map<?,?>>>
      Returns:
      The default value.
      Since:
      1.3.0