Package fr.flowarg.flowupdater.versions
Class VanillaVersion
java.lang.Object
fr.flowarg.flowupdater.versions.VanillaVersion
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder for building a vanilla version likeFlowUpdater.FlowUpdaterBuilder -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe list of custom assets.The list of custom libraries.The custom asset index.Get the url of the JSON version.getMCP()Get the MCP object of the version.com.google.gson.JsonObjectGet the JSON object representing Minecraft's asset index.com.google.gson.JsonObjectGet the JSON object representing Minecraft's client.com.google.gson.JsonArrayGet the JSON array representing all Minecraft's libraries.@NotNull StringgetName()Get the name of the version.booleanIs the current version a snapshot?
-
Field Details
-
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
Get the name of the version.- Returns:
- the name of the version.
-
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
The custom asset index.- Returns:
- the custom asset index.
-
getAnotherAssets
The list of custom assets.- Returns:
- The list of custom assets.
-
getAnotherLibraries
The list of custom libraries.- Returns:
- The list of custom libraries.
-
getJsonURL
Get the url of the JSON version.- Returns:
- the url of the JSON version.
-