Class LimitsSectionSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<LimitsSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.core.config.LimitsSection<LimitsSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.spigot.core.config.LimitsSectionSpigot
Represents a section in the configuration file that governs
Limits on the Spigot platform.
This section is used to configure various limits, such as the maximum number of animations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the result of the LimitsSectionSpigot configuration. -
Field Summary
Fields inherited from class LimitsSection
DEFAULT_MAX_BLOCK_SPEED, DEFAULT_MAX_BLOCKS_TO_MOVE, DEFAULT_MAX_POWERBLOCK_DISTANCE, DEFAULT_MAX_STRUCTURE_COUNT, DEFAULT_MAX_STRUCTURE_SIZE, PATH_MAX_BLOCK_SPEED, PATH_MAX_BLOCKS_TO_MOVE, PATH_MAX_POWERBLOCK_DISTANCE, PATH_MAX_STRUCTURE_COUNT, PATH_MAX_STRUCTURE_SIZE, SECTION_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionLimitsSectionSpigot(@Nullable Consumer<LimitsSectionSpigot.Result> resultConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected LimitsSectionSpigot.ResultgetResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Gets the result of this configuration section.@Nullable Consumer<LimitsSectionSpigot.Result> Gets the consumer that will handle the result of this configuration section.Methods inherited from class LimitsSection
buildInitialLimitsNode, getSectionTitleMethods inherited from class ConfigSection
applyResults, formatDefaultCollection, getSection, populateDynamicData
-
Constructor Details
-
LimitsSectionSpigot
-
-
Method Details
-
getResult
protected LimitsSectionSpigot.Result getResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Description copied from class:ConfigSectionGets the result of this configuration section.- Specified by:
getResultin classConfigSection<LimitsSectionSpigot.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<LimitsSectionSpigot.Result>- Returns:
- the consumer that will handle the result, or null if no consumer is defined.
-