Class GeneralSectionSpigot


public class GeneralSectionSpigot extends GeneralSection<GeneralSectionSpigot.Result>
Represents a section in the configuration file that governs general settings for Spigot.
  • Field Details

    • PATH_RESOURCE_PACK_ENABLED

      public static final String PATH_RESOURCE_PACK_ENABLED
      See Also:
    • PATH_MATERIAL_BLACKLIST

      public static final String PATH_MATERIAL_BLACKLIST
      See Also:
    • PATH_COMMAND_ALIASES

      public static final String PATH_COMMAND_ALIASES
      See Also:
    • DEFAULT_RESOURCE_PACK_ENABLED

      public static final boolean DEFAULT_RESOURCE_PACK_ENABLED
      See Also:
    • DEFAULT_MATERIAL_BLACKLIST

      public static final List<String> DEFAULT_MATERIAL_BLACKLIST
    • DEFAULT_COMMAND_ALIASES

      public static final List<String> DEFAULT_COMMAND_ALIASES
  • Constructor Details

  • Method Details

    • buildInitialLimitsNode

      public org.spongepowered.configurate.CommentedConfigurationNode buildInitialLimitsNode() throws org.spongepowered.configurate.serialize.SerializationException
      Description copied from class: ConfigSection
      Builds the initial limits node for this configuration section.

      This method is responsible for creating the initial configuration node for this section, including any default values and comments.

      Overrides:
      buildInitialLimitsNode in class GeneralSection<GeneralSectionSpigot.Result>
      Returns:
      the initial limits node for this section
      Throws:
      org.spongepowered.configurate.serialize.SerializationException - if an error occurs during serialization
    • getResult

      protected GeneralSectionSpigot.Result getResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) throws org.spongepowered.configurate.serialize.SerializationException
      Description copied from class: ConfigSection
      Gets the result of this configuration section.
      Specified by:
      getResult in class ConfigSection<GeneralSectionSpigot.Result>
      Parameters:
      sectionNode - The configuration node for this section.
      silent - When true, the method will not log any informational/status messages when parsing the results.
      Returns:
      the result of this configuration section
      Throws:
      org.spongepowered.configurate.serialize.SerializationException - If an error occurs during serialization.
    • getResultConsumer

      public @Nullable Consumer<GeneralSectionSpigot.Result> getResultConsumer()
      Description copied from class: ConfigSection
      Gets the consumer that will handle the result of this configuration section.
      Specified by:
      getResultConsumer in class ConfigSection<GeneralSectionSpigot.Result>
      Returns:
      the consumer that will handle the result, or null if no consumer is defined.