Interface ConfigCheckExtension

  • All Implemented Interfaces:
    de.griefed.serverpackcreator.api.plugins.BaseInformation , de.griefed.serverpackcreator.api.plugins.ExtensionInformation , org.pf4j.ExtensionPoint

    
    public interface ConfigCheckExtension
     implements ExtensionInformation
                        

    Extension point for configuration checks, so you can run your own checks on a given PackConfig should you so desire.

    Author:

    Griefed

    • Constructor Detail

    • Method Detail

      • runCheck

         abstract Boolean runCheck(VersionMeta versionMeta, ApiProperties apiProperties, Utilities utilities, PackConfig packConfig, ConfigCheck configCheck, Optional<CommentedConfig> pluginConfig, ArrayList<CommentedConfig> packSpecificConfigs)
        Parameters:
        versionMeta - Instance of VersionMeta so you can work with available Minecraft, Forge, Fabric, LegacyFabric and Quilt versions.
        apiProperties - Instance of ApiProperties The current configuration of ServerPackCreator, like the default list of clientside-only mods, the server pack directory etc.
        utilities - Instance of Utilities commonly used across ServerPackCreator.
        packConfig - The configuration to check.
        configCheck - Contains all encountered errors during the check of the passed configuration.
        pluginConfig - Configuration for this plugin, conveniently provided by ServerPackCreator.
        packSpecificConfigs - Modpack and server pack specific configurations for this plugin, conveniently provided by ServerPackCreator.
        Returns:

        true if an error was encountered. false if the checks were successful.