Class ProtectionHooksSection<T extends IConfigSectionResult>
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<T>
nl.pim16aap2.animatedarchitecture.core.config.ProtectionHooksSection<T>
- Type Parameters:
T- the type of result this section produces.
- Direct Known Subclasses:
ProtectionHooksSectionSpigot
public abstract class ProtectionHooksSection<T extends IConfigSectionResult>
extends ConfigSection<T>
Represents a section in the configuration for protection hooks.
This section is used to configure hooks for various protection plugins, allowing the plugin to interact with them for structure protection and other related features.
-
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.abstract voidpopulateDynamicData(org.spongepowered.configurate.CommentedConfigurationNode root) Populates the dynamic data for this configuration section.Methods inherited from class ConfigSection
applyResults, formatDefaultCollection, getResult, getResultConsumer, getSection
-
Field Details
-
SECTION_TITLE
- See Also:
-
-
Constructor Details
-
ProtectionHooksSection
public ProtectionHooksSection()
-
-
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
-
populateDynamicData
public abstract void populateDynamicData(org.spongepowered.configurate.CommentedConfigurationNode root) Description copied from class:ConfigSectionPopulates the dynamic data for this configuration section.This method will not overwrite existing data in the node; it will only add new data if any is missing.
- Overrides:
populateDynamicDatain classConfigSection<T extends IConfigSectionResult>- Parameters:
root- The root configuration node to populate with dynamic data.
-
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
-