Class CachingSectionSpigot


public class CachingSectionSpigot extends CachingSection<CachingSectionSpigot.Result>
Represents a section in the configuration for caching settings specific to the Spigot implementation.

This section is used to configure caching behavior, such as the timeout for player head caches.

  • Field Details

  • 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 CachingSection<CachingSectionSpigot.Result>
      Returns:
      the initial limits node for this section
      Throws:
      org.spongepowered.configurate.serialize.SerializationException - if an error occurs during serialization
    • getResult

      protected CachingSectionSpigot.Result getResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent)
      Description copied from class: ConfigSection
      Gets the result of this configuration section.
      Specified by:
      getResult in class ConfigSection<CachingSectionSpigot.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
    • getResultConsumer

      public @Nullable Consumer<CachingSectionSpigot.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<CachingSectionSpigot.Result>
      Returns:
      the consumer that will handle the result, or null if no consumer is defined.