Class VersionInfo

java.lang.Object
org.moddingx.launcherlib.launcher.VersionInfo

public class VersionInfo extends Object
Launcher metadata for one specific minecraft version.
  • Constructor Details

  • Method Details

    • id

      public String id()
      Gets this versions name.
    • type

      public VersionType type()
      Gets the type of this minecraft version.
    • releaseTime

      public Instant releaseTime()
      Gets the release time of this minecraft version.
    • java

      public int java()
      Gets the java version required to run this minecraft version.
    • client

      public InputStream client() throws IOException
      Downloads the client.
      Throws:
      IOException
    • server

      public InputStream server() throws IOException
      Downloads the server.
      Throws:
      IOException
    • libraries

      public List<Library> libraries()
      Gets all libraries required to launch the game.
    • assets

      public AssetIndex assets()
      Gets the AssetIndex to use with this version.
    • clientMap

      public net.neoforged.srgutils.IMappingFile clientMap()
      Gets the client mappings for this version.
      Throws:
      NoSuchElementException - if there are no mappings for this version.
    • serverMap

      public net.neoforged.srgutils.IMappingFile serverMap()
      Gets the server mappings for this version.
      Throws:
      NoSuchElementException - if there are no mappings for this version.
    • mergedMap

      public net.neoforged.srgutils.IMappingFile mergedMap()
      Gets the merged mappings for this version.
      Throws:
      NoSuchElementException - if there are no mappings for this version.