public class MinecraftMeta
extends java.lang.Object
| Constructor and Description |
|---|
MinecraftMeta(java.io.File minecraftManifest,
ForgeMeta injectedForgeMeta)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMinecraftVersion(java.lang.String minecraftVersion)
Check whether a
MinecraftClient is available for the specified Minecraft-version. |
boolean |
checkServerAvailability(java.lang.String minecraftVersion)
Check whether a
MinecraftServer is available for the specified Minecraft-version. |
java.util.Optional<MinecraftClient> |
getClient(java.lang.String minecraftVersion)
Get a specific Minecraft client as a
MinecraftClient wrapped in an Optional. |
java.util.Optional<MinecraftServer> |
getServer(java.lang.String minecraftVersion)
Get a specific
MinecraftServer for the specified Minecraft-version, wrapped in an Optional. |
MinecraftClient |
latestRelease()
Get the latest Minecraft release as a
MinecraftClient. |
MinecraftServer |
latestReleaseServer()
|
MinecraftClient |
latestSnapshot()
Get the latest Minecraft snapshot as a
MinecraftClient. |
MinecraftServer |
latestSnapshotServer()
|
MinecraftClient[] |
releasesArrayAscending()
Get an array of all available
MinecraftClient of the Type.RELEASE, in descending order. |
MinecraftClient[] |
releasesArrayDescending()
Get an array of all available
MinecraftClient of the Type.RELEASE, in ascending order. |
java.util.List<MinecraftClient> |
releasesAscending()
Get a list of all available
MinecraftClient of the Type.RELEASE, in descending order. |
java.util.List<MinecraftClient> |
releasesDescending()
Get a list of all available
MinecraftClient of the Type.RELEASE, in ascending order. |
MinecraftServer[] |
releasesServersArrayAscending()
|
MinecraftServer[] |
releasesServersArrayDescending()
|
java.util.List<MinecraftServer> |
releasesServersAscending()
|
java.util.List<MinecraftServer> |
releasesServersDescending()
|
java.lang.String[] |
releaseVersionsArrayAscending()
Get the array of available Minecraft version of the
Type.RELEASE in Type.ASCENDING order. |
java.lang.String[] |
releaseVersionsArrayDescending()
Get the array of available Minecraft version of the
Type.RELEASE in Type.DESCENDING order. |
java.util.List<java.lang.String> |
releaseVersionsAscending()
Get the list of available Minecraft version of the
Type.RELEASE in Type.ASCENDING order. |
java.util.List<java.lang.String> |
releaseVersionsDescending()
Get the list of available Minecraft version of the
Type.RELEASE in Type.DESCENDING order. |
MinecraftClient[] |
snapshotsArrayAscending()
Get an array of all available
MinecraftClient of the Type.SNAPSHOT, in descending order. |
MinecraftClient[] |
snapshotsArrayDescending()
Get an array of all available
MinecraftClient of the Type.SNAPSHOT, in ascending order. |
java.util.List<MinecraftClient> |
snapshotsAscending()
Get a list of all available
MinecraftClient of the Type.SNAPSHOT, in descending order. |
java.util.List<MinecraftClient> |
snapshotsDescending()
Get a list of all available
MinecraftClient of the Type.SNAPSHOT, in ascending order. |
MinecraftServer[] |
snapshotsServersArrayAscending()
Get an array of all available
MinecraftServer of the Type.SNAPSHOT, in descending order. |
MinecraftServer[] |
snapshotsServersArrayDescending()
Get an array of all available
MinecraftServer of the Type.SNAPSHOT, in ascending order. |
java.util.List<MinecraftServer> |
snapshotsServersAscending()
Get a list of all available
MinecraftServer of the Type.SNAPSHOT, in descending order. |
java.util.List<MinecraftServer> |
snapshotsServersDescending()
|
java.util.List<java.lang.String> |
snapshotsVersionsDescending()
Get the list of available Minecraft version of the
Type.SNAPSHOT in Type.DESCENDING order. |
java.lang.String[] |
snapshotVersionsArrayAscending()
Get the array of available Minecraft version of the
Type.SNAPSHOT in Type.ASCENDING order. |
java.lang.String[] |
snapshotVersionsArrayDescending()
Get the array of available Minecraft version of the
Type.SNAPSHOT in Type.DESCENDING order. |
java.util.List<java.lang.String> |
snapshotVersionsAscending()
Get the list of available Minecraft version of the
Type.SNAPSHOT in Type.ASCENDING order. |
MinecraftMeta |
update()
Update the
MinecraftClientMeta and MinecraftServerMeta. |
public MinecraftMeta(java.io.File minecraftManifest,
ForgeMeta injectedForgeMeta)
minecraftManifest - File Minecraft manifest file.injectedForgeMeta - ForgeMeta to acquire Forge instances for this MinecraftClient version.public MinecraftMeta update() throws java.io.IOException
MinecraftClientMeta and MinecraftServerMeta. Usually called after the manifest-files
have been refreshed.MinecraftMeta.java.io.IOException - if the MinecraftClientMeta could not be initialized.public boolean checkMinecraftVersion(java.lang.String minecraftVersion)
MinecraftClient is available for the specified Minecraft-version.minecraftVersion - String The Minecraft-version.Boolean true if a MinecraftClient is available.public java.util.List<java.lang.String> releaseVersionsDescending()
Type.RELEASE in Type.DESCENDING order.String-list of all available Minecraft Type.RELEASE versions in Type.DESCENDING order.public java.util.List<java.lang.String> releaseVersionsAscending()
Type.RELEASE in Type.ASCENDING order.String-list of all available Minecraft Type.RELEASE versions in Type.ASCENDING order.public java.lang.String[] releaseVersionsArrayDescending()
Type.RELEASE in Type.DESCENDING order.String-array of all available Minecraft Type.RELEASE versions in Type.DESCENDING order.public java.lang.String[] releaseVersionsArrayAscending()
Type.RELEASE in Type.ASCENDING order.String-array of all available Minecraft Type.RELEASE versions in Type.ASCENDING order.public java.util.List<java.lang.String> snapshotsVersionsDescending()
Type.SNAPSHOT in Type.DESCENDING order.String-list of all available Minecraft Type.SNAPSHOT versions in Type.DESCENDING order.public java.util.List<java.lang.String> snapshotVersionsAscending()
Type.SNAPSHOT in Type.ASCENDING order.String-list of all available Minecraft Type.SNAPSHOT versions in Type.ASCENDING order.public java.lang.String[] snapshotVersionsArrayDescending()
Type.SNAPSHOT in Type.DESCENDING order.String-array of all available Minecraft Type.SNAPSHOT versions in Type.DESCENDING order.public java.lang.String[] snapshotVersionsArrayAscending()
Type.SNAPSHOT in Type.ASCENDING order.String-array of all available Minecraft Type.SNAPSHOT versions in Type.ASCENDING order.public MinecraftClient latestRelease()
MinecraftClient.MinecraftClientpublic MinecraftClient latestSnapshot()
MinecraftClient.MinecraftClientpublic java.util.Optional<MinecraftClient> getClient(java.lang.String minecraftVersion)
MinecraftClient wrapped in an Optional.minecraftVersion - String Minecraft version.MinecraftClient wrapped in an Optionalpublic java.util.List<MinecraftClient> releasesDescending()
MinecraftClient of the Type.RELEASE, in ascending order.MinecraftClient-listpublic java.util.List<MinecraftClient> releasesAscending()
MinecraftClient of the Type.RELEASE, in descending order.MinecraftClient-listpublic MinecraftClient[] releasesArrayDescending()
MinecraftClient of the Type.RELEASE, in ascending order.MinecraftClient-arraypublic MinecraftClient[] releasesArrayAscending()
MinecraftClient of the Type.RELEASE, in descending order.MinecraftClient-arraypublic java.util.List<MinecraftClient> snapshotsDescending()
MinecraftClient of the Type.SNAPSHOT, in ascending order.MinecraftClient-listpublic java.util.List<MinecraftClient> snapshotsAscending()
MinecraftClient of the Type.SNAPSHOT, in descending order.MinecraftClient-listpublic MinecraftClient[] snapshotsArrayDescending()
MinecraftClient of the Type.SNAPSHOT, in ascending order.MinecraftClient-arraypublic MinecraftClient[] snapshotsArrayAscending()
MinecraftClient of the Type.SNAPSHOT, in descending order.MinecraftClient-arraypublic java.util.Optional<MinecraftServer> getServer(java.lang.String minecraftVersion)
MinecraftServer for the specified Minecraft-version, wrapped in an Optional.minecraftVersion - String The Minecraft-version.MinecraftServer wrapped in an Optionalpublic boolean checkServerAvailability(java.lang.String minecraftVersion)
MinecraftServer is available for the specified Minecraft-version.minecraftVersion - String The Minecraft-version.Boolean true if a MinecraftServer is available.public MinecraftServer latestReleaseServer()
MinecraftServer wrapped in an Optionalpublic MinecraftServer latestSnapshotServer()
MinecraftServer wrapped in an Optionalpublic java.util.List<MinecraftServer> releasesServersDescending()
MinecraftServer-listpublic java.util.List<MinecraftServer> releasesServersAscending()
MinecraftServer-listpublic MinecraftServer[] releasesServersArrayDescending()
MinecraftServer-arraypublic MinecraftServer[] releasesServersArrayAscending()
MinecraftServer-arraypublic java.util.List<MinecraftServer> snapshotsServersDescending()
MinecraftServer-listpublic java.util.List<MinecraftServer> snapshotsServersAscending()
MinecraftServer of the Type.SNAPSHOT, in descending order.MinecraftServer-listpublic MinecraftServer[] snapshotsServersArrayDescending()
MinecraftServer of the Type.SNAPSHOT, in ascending order.MinecraftServer-arraypublic MinecraftServer[] snapshotsServersArrayAscending()
MinecraftServer of the Type.SNAPSHOT, in descending order.MinecraftServer-array