Class VanillaVersion

java.lang.Object
fr.flowarg.flowupdater.versions.VanillaVersion

public class VanillaVersion extends Object
  • Field Details

    • NULL_VERSION

      public static final VanillaVersion NULL_VERSION
      Default version. It used when an update doesn't need a Minecraft installation.
  • Method Details

    • getMinecraftLibrariesJson

      public com.google.gson.JsonArray getMinecraftLibrariesJson()
      Get the JSON array representing all Minecraft's libraries.
      Returns:
      the libraries in JSON format.
    • getMinecraftClient

      public com.google.gson.JsonObject getMinecraftClient()
      Get the JSON object representing Minecraft's client.
      Returns:
      the client in JSON format.
    • getMinecraftAssetIndex

      public com.google.gson.JsonObject getMinecraftAssetIndex()
      Get the JSON object representing Minecraft's asset index.
      Returns:
      the asset index in JSON format.
    • getName

      @NotNull public @NotNull String getName()
      Get the name of the version.
      Returns:
      the name of the version.
    • getMCP

      public MCP getMCP()
      Get the MCP object of the version.
      Returns:
      the MCP object of the version.
    • isSnapshot

      public boolean isSnapshot()
      Is the current version a snapshot?
      Returns:
      if the current version is a snapshot.
    • getCustomAssetIndex

      public AssetIndex getCustomAssetIndex()
      The custom asset index.
      Returns:
      the custom asset index.
    • getAnotherAssets

      public List<AssetDownloadable> getAnotherAssets()
      The list of custom assets.
      Returns:
      The list of custom assets.
    • getAnotherLibraries

      public List<Downloadable> getAnotherLibraries()
      The list of custom libraries.
      Returns:
      The list of custom libraries.
    • getJsonURL

      public String getJsonURL()
      Get the url of the JSON version.
      Returns:
      the url of the JSON version.