Class LocaleSection<T extends IConfigSectionResult>
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<T>
nl.pim16aap2.animatedarchitecture.core.config.LocaleSection<T>
- Type Parameters:
T- the type of result this section produces.
- Direct Known Subclasses:
LocaleSectionSpigot
Represents a configuration section for locale settings in Animated Architecture.
This section allows the user to configure the locale used by the plugin and whether clients are allowed to use their own locale settings.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.spongepowered.configurate.CommentedConfigurationNodeBuilds the initial limits node for this configuration section.Returns the title of the configuration section.Methods inherited from class ConfigSection
applyResults, formatDefaultCollection, getResult, getResultConsumer, getSection, populateDynamicData
-
Field Details
-
SECTION_TITLE
- See Also:
-
PATH_LOCALE
- See Also:
-
PATH_ALLOW_CLIENT_LOCALE
- See Also:
-
DEFAULT_LOCALE
-
DEFAULT_ALLOW_CLIENT_LOCALE
public static final boolean DEFAULT_ALLOW_CLIENT_LOCALE- See Also:
-
-
Constructor Details
-
LocaleSection
public LocaleSection()
-
-
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.
- Specified by:
buildInitialLimitsNodein classConfigSection<T extends IConfigSectionResult>- Returns:
- the initial limits node for this section
- Throws:
org.spongepowered.configurate.serialize.SerializationException- if an error occurs during serialization
-
getSectionTitle
Description copied from class:ConfigSectionReturns the title of the configuration section.- Specified by:
getSectionTitlein classConfigSection<T extends IConfigSectionResult>- Returns:
- the title of the section
-