Class CachingSectionSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<CachingSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.core.config.CachingSection<CachingSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.spigot.core.config.CachingSectionSpigot
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the result of the caching configuration section. -
Field Summary
FieldsFields inherited from class CachingSection
DEFAULT_POWERBLOCK_CACHE_TIMEOUT, PATH_POWERBLOCK_CACHE_TIMEOUT, SECTION_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionCachingSectionSpigot(@Nullable Consumer<CachingSectionSpigot.Result> resultConsumer) -
Method Summary
Modifier and TypeMethodDescriptionorg.spongepowered.configurate.CommentedConfigurationNodeBuilds the initial limits node for this configuration section.protected CachingSectionSpigot.ResultgetResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Gets the result of this configuration section.@Nullable Consumer<CachingSectionSpigot.Result> Gets the consumer that will handle the result of this configuration section.Methods inherited from class CachingSection
getSectionTitleMethods inherited from class ConfigSection
applyResults, formatDefaultCollection, getSection, populateDynamicData
-
Field Details
-
PATH_HEAD_CACHE_TIMEOUT
- See Also:
-
DEFAULT_HEAD_CACHE_TIMEOUT
public static final int DEFAULT_HEAD_CACHE_TIMEOUT- See Also:
-
-
Constructor Details
-
CachingSectionSpigot
-
CachingSectionSpigot
public CachingSectionSpigot()
-
-
Method Details
-
buildInitialLimitsNode
public org.spongepowered.configurate.CommentedConfigurationNode buildInitialLimitsNode() throws org.spongepowered.configurate.serialize.SerializationExceptionDescription copied from class:ConfigSectionBuilds 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:
buildInitialLimitsNodein classCachingSection<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:ConfigSectionGets the result of this configuration section.- Specified by:
getResultin classConfigSection<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
Description copied from class:ConfigSectionGets the consumer that will handle the result of this configuration section.- Specified by:
getResultConsumerin classConfigSection<CachingSectionSpigot.Result>- Returns:
- the consumer that will handle the result, or null if no consumer is defined.
-