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.

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

        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.