Class GeneralSectionSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<GeneralSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.core.config.GeneralSection<GeneralSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.spigot.core.config.GeneralSectionSpigot
Represents a section in the configuration file that governs general settings for Spigot.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the result of the General section configuration. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final Stringstatic final Stringstatic final StringFields inherited from class GeneralSection
SECTION_COMMENT, SECTION_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionGeneralSectionSpigot(@Nullable Consumer<GeneralSectionSpigot.Result> resultConsumer) -
Method Summary
Modifier and TypeMethodDescriptionorg.spongepowered.configurate.CommentedConfigurationNodeBuilds the initial limits node for this configuration section.protected GeneralSectionSpigot.ResultgetResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Gets the result of this configuration section.@Nullable Consumer<GeneralSectionSpigot.Result> Gets the consumer that will handle the result of this configuration section.Methods inherited from class GeneralSection
getSectionTitleMethods inherited from class ConfigSection
applyResults, formatDefaultCollection, getSection, populateDynamicData
-
Field Details
-
PATH_RESOURCE_PACK_ENABLED
- See Also:
-
PATH_MATERIAL_BLACKLIST
- See Also:
-
PATH_COMMAND_ALIASES
- See Also:
-
DEFAULT_RESOURCE_PACK_ENABLED
public static final boolean DEFAULT_RESOURCE_PACK_ENABLED- See Also:
-
DEFAULT_MATERIAL_BLACKLIST
-
DEFAULT_COMMAND_ALIASES
-
-
Constructor Details
-
GeneralSectionSpigot
-
-
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 classGeneralSection<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:ConfigSectionGets the result of this configuration section.- Specified by:
getResultin classConfigSection<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
Description copied from class:ConfigSectionGets the consumer that will handle the result of this configuration section.- Specified by:
getResultConsumerin classConfigSection<GeneralSectionSpigot.Result>- Returns:
- the consumer that will handle the result, or null if no consumer is defined.
-