Class ProtectionHooksSectionSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<ProtectionHooksSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.core.config.ProtectionHooksSection<ProtectionHooksSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.spigot.core.config.ProtectionHooksSectionSpigot
public class ProtectionHooksSectionSpigot
extends ProtectionHooksSection<ProtectionHooksSectionSpigot.Result>
Represents a section in the configuration for protection hooks specific to the Spigot implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the result of the ProtectionHooksSectionSpigot configuration. -
Field Summary
FieldsFields inherited from class ProtectionHooksSection
SECTION_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionProtectionHooksSectionSpigot(dagger.Lazy<ProtectionHookManagerSpigot> protectionHookManager, @Nullable Consumer<ProtectionHooksSectionSpigot.Result> resultConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected ProtectionHooksSectionSpigot.ResultgetResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Gets the result of this configuration section.@Nullable Consumer<ProtectionHooksSectionSpigot.Result> Gets the consumer that will handle the result of this configuration section.voidpopulateDynamicData(org.spongepowered.configurate.CommentedConfigurationNode root) Populates the dynamic data for this configuration section.Methods inherited from class ProtectionHooksSection
buildInitialLimitsNode, getSectionTitleMethods inherited from class ConfigSection
applyResults, formatDefaultCollection, getSection
-
Field Details
-
PATH_PROTECTION_HOOK_ENABLED
- See Also:
-
-
Constructor Details
-
ProtectionHooksSectionSpigot
public ProtectionHooksSectionSpigot(dagger.Lazy<ProtectionHookManagerSpigot> protectionHookManager, @Nullable Consumer<ProtectionHooksSectionSpigot.Result> resultConsumer) -
ProtectionHooksSectionSpigot
public ProtectionHooksSectionSpigot()
-
-
Method Details
-
populateDynamicData
public 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.
- Specified by:
populateDynamicDatain classProtectionHooksSection<ProtectionHooksSectionSpigot.Result>- Parameters:
root- The root configuration node to populate with dynamic data.
-
getResult
protected ProtectionHooksSectionSpigot.Result getResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Description copied from class:ConfigSectionGets the result of this configuration section.- Specified by:
getResultin classConfigSection<ProtectionHooksSectionSpigot.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<ProtectionHooksSectionSpigot.Result>- Returns:
- the consumer that will handle the result, or null if no consumer is defined.
-