Interface Meta

  • All Implemented Interfaces:

    
    public interface Meta
    
                        

    Provide default methods to access a given Metas versions.

    Author:

    Griefed

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • update

         abstract 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

         abstract String latestLoader()

        Get the latest loader version.

        Returns:

        The latest version.

      • releaseLoader

         abstract String releaseLoader()

        Get the release loader version.

        Returns:

        The release loader version.

      • latestInstaller

         abstract String latestInstaller()

        Get the latest installer version.

        Returns:

        The latest installer version.

      • releaseInstaller

         abstract String releaseInstaller()

        Get the release installer version.

        Returns:

        The release installer version.

      • loaderVersions

         abstract List<String> loaderVersions()

        List of available loader versions in ascending order.

        Returns:

        Available loader versions in ascending order.

      • installerVersions

         abstract List<String> installerVersions()

        List of available installer version in ascending order.

        Returns:

        Available installer version in ascending order.

      • latestInstallerUrl

         abstract URL latestInstallerUrl()

        Get the URL to the latest installer.

        Returns:

        URL to the latest installer.

      • releaseInstallerUrl

         abstract URL releaseInstallerUrl()

        Get the URL to the release installer.

        Returns:

        URL to the release installer.

      • installerFor

         abstract 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.

      • isInstallerUrlAvailable

         abstract Boolean isInstallerUrlAvailable(String version)

        Check whether a URL to an installer is available for the specified version.

        Parameters:
        version - The modloader version for which to check for installer availability.
        Returns:

        true if available.

      • getInstallerUrl

         abstract Optional<URL> getInstallerUrl(String version)

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

        Parameters:
        version - The modloader version for which to get the installer.
        Returns:

        The URL to the installer, wrapped in an Optional.

      • isVersionValid

         abstract Boolean isVersionValid(String version)

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

        Parameters:
        version - The version to check.
        Returns:

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

      • isMinecraftSupported

         abstract Boolean isMinecraftSupported(String minecraftVersion)

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

        Parameters:
        minecraftVersion - The Minecraft version for which to check for support.
        Returns:

        true if the specified Minecraft version is supported.