Class RedstoneSectionSpigot


public class RedstoneSectionSpigot extends RedstoneSection<RedstoneSectionSpigot.Result>
Represents a section in the configuration file that governs redstone settings for Spigot.
  • Field Details

    • PATH_POWERBLOCK_TYPES

      public static final String PATH_POWERBLOCK_TYPES
      See Also:
    • DEFAULT_POWERBLOCK_MATERIAL

      public static final org.bukkit.Material DEFAULT_POWERBLOCK_MATERIAL
    • DEFAULT_POWERBLOCK_TYPES

      public static final List<String> DEFAULT_POWERBLOCK_TYPES
  • Constructor Details

  • Method Details

    • buildInitialLimitsNode

      public org.spongepowered.configurate.CommentedConfigurationNode buildInitialLimitsNode() throws org.spongepowered.configurate.serialize.SerializationException
      Description copied from class: ConfigSection
      Builds 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:
      buildInitialLimitsNode in class RedstoneSection<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: ConfigSection
      Gets the result of this configuration section.
      Specified by:
      getResult in class ConfigSection<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

      public @Nullable Consumer<RedstoneSectionSpigot.Result> getResultConsumer()
      Description copied from class: ConfigSection
      Gets the consumer that will handle the result of this configuration section.
      Specified by:
      getResultConsumer in class ConfigSection<RedstoneSectionSpigot.Result>
      Returns:
      the consumer that will handle the result, or null if no consumer is defined.