Class LocaleSectionSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<LocaleSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.core.config.LocaleSection<LocaleSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.spigot.core.config.LocaleSectionSpigot
Represents a section in the configuration file that governs locale settings for Spigot.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the result of the locale configuration section. -
Field Summary
Fields inherited from class LocaleSection
DEFAULT_ALLOW_CLIENT_LOCALE, DEFAULT_LOCALE, PATH_ALLOW_CLIENT_LOCALE, PATH_LOCALE, SECTION_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionLocaleSectionSpigot(@Nullable Consumer<LocaleSectionSpigot.Result> resultConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected LocaleSectionSpigot.ResultgetResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Gets the result of this configuration section.@Nullable Consumer<LocaleSectionSpigot.Result> Gets the consumer that will handle the result of this configuration section.Methods inherited from class LocaleSection
buildInitialLimitsNode, getSectionTitleMethods inherited from class ConfigSection
applyResults, formatDefaultCollection, getSection, populateDynamicData
-
Constructor Details
-
LocaleSectionSpigot
-
-
Method Details
-
getResult
protected LocaleSectionSpigot.Result getResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Description copied from class:ConfigSectionGets the result of this configuration section.- Specified by:
getResultin classConfigSection<LocaleSectionSpigot.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<LocaleSectionSpigot.Result>- Returns:
- the consumer that will handle the result, or null if no consumer is defined.
-