Class RedstoneSectionSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<RedstoneSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.core.config.RedstoneSection<RedstoneSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.spigot.core.config.RedstoneSectionSpigot
Represents a section in the configuration file that governs redstone settings for Spigot.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the result of the General section configuration. -
Field Summary
FieldsFields inherited from class RedstoneSection
DEFAULT_ALLOW_REDSTONE, PATH_ALLOW_REDSTONE, SECTION_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionRedstoneSectionSpigot(@Nullable Consumer<RedstoneSectionSpigot.Result> resultConsumer) -
Method Summary
Modifier and TypeMethodDescriptionorg.spongepowered.configurate.CommentedConfigurationNodeBuilds the initial limits node for this configuration section.protected RedstoneSectionSpigot.ResultgetResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Gets the result of this configuration section.@Nullable Consumer<RedstoneSectionSpigot.Result> Gets the consumer that will handle the result of this configuration section.Methods inherited from class RedstoneSection
getSectionTitleMethods inherited from class ConfigSection
applyResults, formatDefaultCollection, getSection, populateDynamicData
-
Field Details
-
PATH_POWERBLOCK_TYPES
- See Also:
-
DEFAULT_POWERBLOCK_MATERIAL
public static final org.bukkit.Material DEFAULT_POWERBLOCK_MATERIAL -
DEFAULT_POWERBLOCK_TYPES
-
-
Constructor Details
-
RedstoneSectionSpigot
-
-
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 classRedstoneSection<RedstoneSectionSpigot.Result>- Returns:
- the initial limits node for this section
- Throws:
org.spongepowered.configurate.serialize.SerializationException- if an error occurs during serialization
-
getResult
protected RedstoneSectionSpigot.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<RedstoneSectionSpigot.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<RedstoneSectionSpigot.Result>- Returns:
- the consumer that will handle the result, or null if no consumer is defined.
-