Class AnimationsSectionSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<AnimationsSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.core.config.AnimationsSection<AnimationsSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.spigot.core.config.AnimationsSectionSpigot
Represents a section in the configuration for animations specific to the Spigot implementation.
This section is used to configure animation settings, such as the default animation speed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the result of this section after it was parsed. -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAnimationsSectionSpigot(@Nullable Consumer<AnimationsSectionSpigot.Result> resultConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected AnimationsSectionSpigot.ResultgetResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Gets the result of this configuration section.@Nullable Consumer<AnimationsSectionSpigot.Result> Gets the consumer that will handle the result of this configuration section.Methods inherited from class AnimationsSection
buildInitialLimitsNode, getSectionTitleMethods inherited from class ConfigSection
applyResults, formatDefaultCollection, getSection, populateDynamicData
-
Constructor Details
-
AnimationsSectionSpigot
-
-
Method Details
-
getResult
protected AnimationsSectionSpigot.Result getResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Description copied from class:ConfigSectionGets the result of this configuration section.- Specified by:
getResultin classConfigSection<AnimationsSectionSpigot.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<AnimationsSectionSpigot.Result>- Returns:
- the consumer that will handle the result, or null if no consumer is defined.
-