Class ConfigCheck
-
- All Implemented Interfaces:
public final class ConfigCheckConveniently access all different check-types, whether they passed and which errors, if any, were encountered.
Griefed
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ConfigCheck()
-
Method Summary
Modifier and Type Method Description final List<String>getConfigErrors()List of errors encountered during the config checks of the configuration. final BooleangetConfigChecksPassed()Whether the config checks passed. final List<String>getModpackErrors()List of errors encountered during the modpack checks of the configuration. final BooleangetModpackChecksPassed()final List<String>getInclusionErrors()List of errors encountered during the inclusion checks of the configuration. final BooleangetInclusionsChecksPassed()Whether the inclusion checks passed. final List<String>getMinecraftVersionErrors()List of errors encountered during the Minecraft-version checks of the configuration. final BooleangetMinecraftVersionChecksPassed()Whether the Minecraft-version checks passed. final List<String>getModloaderErrors()List of errors encountered during the modloader checks of the configuration. final BooleangetModloaderChecksPassed()Whether the modloader checks passed. final List<String>getModloaderVersionErrors()List of errors encountered during the modloader-version checks of the configuration. final BooleangetModloaderVersionChecksPassed()Whether the modloader-version checks passed. final List<String>getServerIconErrors()List of errors encountered during the server-icon checks of the configuration. final BooleangetServerIconChecksPassed()Whether the server-icon checks passed. final List<String>getServerPropertiesErrors()List of errors encountered during the server.properties checks of the configuration. final BooleangetServerPropertiesChecksPassed()Whether the server.properties checks passed. final List<String>getPluginsErrors()List of errors encountered in plugin-provided checks of the configuration. final BooleangetPluginsChecksPassed()Whether all plugin-provided checks passed. final List<String>getOtherErrors()List of errors which didn't fit any of the other categories. final BooleangetOtherChecksPassed()Whether every check outside the named categories passed — the catch-all a host can test without listing them. final List<String>getEncounteredErrors()List of all errors encountered during the check of this configuration. final BooleangetAllChecksPassed()Whether all checks were passed for this configuration. final ConfigCheckand(ConfigCheck check)Merge this check with the given check into one. -
-
Method Detail
-
getConfigErrors
final List<String> getConfigErrors()
List of errors encountered during the config checks of the configuration.
-
getConfigChecksPassed
final Boolean getConfigChecksPassed()
Whether the config checks passed. Only true if all checks passed.
-
getModpackErrors
final List<String> getModpackErrors()
List of errors encountered during the modpack checks of the configuration.
-
getModpackChecksPassed
final Boolean getModpackChecksPassed()
Whether the modpack checks passed. Only true if all checks passed.
-
getInclusionErrors
final List<String> getInclusionErrors()
List of errors encountered during the inclusion checks of the configuration.
-
getInclusionsChecksPassed
final Boolean getInclusionsChecksPassed()
Whether the inclusion checks passed. Only true if all checks passed.
-
getMinecraftVersionErrors
final List<String> getMinecraftVersionErrors()
List of errors encountered during the Minecraft-version checks of the configuration.
-
getMinecraftVersionChecksPassed
final Boolean getMinecraftVersionChecksPassed()
Whether the Minecraft-version checks passed. Only true if all checks passed.
-
getModloaderErrors
final List<String> getModloaderErrors()
List of errors encountered during the modloader checks of the configuration.
-
getModloaderChecksPassed
final Boolean getModloaderChecksPassed()
Whether the modloader checks passed. Only true if all checks passed.
-
getModloaderVersionErrors
final List<String> getModloaderVersionErrors()
List of errors encountered during the modloader-version checks of the configuration.
-
getModloaderVersionChecksPassed
final Boolean getModloaderVersionChecksPassed()
Whether the modloader-version checks passed. Only true if all checks passed.
-
getServerIconErrors
final List<String> getServerIconErrors()
List of errors encountered during the server-icon checks of the configuration.
-
getServerIconChecksPassed
final Boolean getServerIconChecksPassed()
Whether the server-icon checks passed. Only true if all checks passed.
-
getServerPropertiesErrors
final List<String> getServerPropertiesErrors()
List of errors encountered during the server.properties checks of the configuration.
-
getServerPropertiesChecksPassed
final Boolean getServerPropertiesChecksPassed()
Whether the server.properties checks passed. Only true if all checks passed.
-
getPluginsErrors
final List<String> getPluginsErrors()
List of errors encountered in plugin-provided checks of the configuration.
-
getPluginsChecksPassed
final Boolean getPluginsChecksPassed()
Whether all plugin-provided checks passed. Only true if all passed.
-
getOtherErrors
final List<String> getOtherErrors()
List of errors which didn't fit any of the other categories.
-
getOtherChecksPassed
final Boolean getOtherChecksPassed()
Whether every check outside the named categories passed — the catch-all a host can test without listing them.
-
getEncounteredErrors
final List<String> getEncounteredErrors()
List of all errors encountered during the check of this configuration.
-
getAllChecksPassed
final Boolean getAllChecksPassed()
Whether all checks were passed for this configuration. Only true if every single check, including those of any installed plugins, passed.
-
and
final ConfigCheck and(ConfigCheck check)
Merge this check with the given check into one.
Note that no checks are performed for already existing errors. Therefor, duplicate entries are possible.
-
-
-
-