Class QuiltMeta

  • All Implemented Interfaces:
    de.griefed.serverpackcreator.api.versionmeta.Meta

    
    public final class QuiltMeta
     implements Meta
                        

    Quilt meta containing information about available Quilt versions and installers.

    Author:

    Griefed

    • Constructor Detail

      • QuiltMeta

        QuiltMeta(File quiltManifest, File quiltInstallerManifest, FabricIntermediaries fabricIntermediaries, Utilities utilities, File installerCacheDirectory)
        Parameters:
        quiltManifest - Quilt manifest file.
        quiltInstallerManifest - Quilt-installer manifest file.
        fabricIntermediaries - Fabric-Intermediaries for further compatibility tests.
        utilities - Commonly used utilities across ServerPackCreator.
    • Method Detail

      • update

         Unit update()

        Update the meta-information for this modloader-meta, updating the available loader and installer versions, thus giving you access to version-checks, URLs etc.

      • latestLoader

         String latestLoader()

        Get the latest loader version.

        Returns:

        The latest version.

      • releaseLoader

         String releaseLoader()

        Get the release loader version.

        Returns:

        The release loader version.

      • latestInstaller

         String latestInstaller()

        Get the latest installer version.

        Returns:

        The latest installer version.

      • releaseInstaller

         String releaseInstaller()

        Get the release installer version.

        Returns:

        The release installer version.

      • loaderVersions

         List<String> loaderVersions()

        List of available loader versions in ascending order.

        Returns:

        Available loader versions in ascending order.

      • installerVersions

         List<String> installerVersions()

        List of available installer version in ascending order.

        Returns:

        Available installer version in ascending order.

      • latestInstallerUrl

         URL latestInstallerUrl()

        Get the URL to the latest installer.

        Returns:

        URL to the latest installer.

      • releaseInstallerUrl

         URL releaseInstallerUrl()

        Get the URL to the release installer.

        Returns:

        URL to the release installer.

      • installerFor

         Optional<File> installerFor(String version)

        Installer file for the specified modloader version, wrapped in an Optional, so you can check whether it is available first.

        • Fabric: Pass the installer version you require.

        • LegacyFabric: Pass the installer version you require.

        • Quilt: Pass the installer version you require.

      • getInstallerUrl

         Optional<URL> getInstallerUrl(String version)

        Get the URL to the installer for the specified version, wrapped in an Optional.

        Returns:

        The URL to the installer, wrapped in an Optional.

      • isVersionValid

         Boolean isVersionValid(String version)

        Check whether the specified version is available/correct/valid.

        Returns:

        true if the specified version is available/correct/valid.

      • isMinecraftSupported

         Boolean isMinecraftSupported(String minecraftVersion)

        Check whether the given Minecraft version is supported by this modloader.

        Returns:

        true if the specified Minecraft version is supported.