public final class MinecraftMeta
extends java.lang.Object
| Constructor and Description |
|---|
MinecraftMeta(java.io.File minecraftManifest,
ForgeMeta injectedForgeMeta,
Utilities utilities,
ApplicationProperties applicationProperties)
Create a new Minecraft Meta instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<MinecraftClient> |
allAscending()
Get all available Minecraft releases, both releases and pre-releases or snapshots, in
Type.ASCENDING order. |
MinecraftClient[] |
allAscendingArray()
Get all available Minecraft releases, both releases and pre-releases or snapshots, in
Type.ASCENDING order. |
java.util.List<MinecraftClient> |
allDescending()
Get all available Minecraft releases, both releases and pre-releases or snapshots, in
Type.DESCENDING order. |
MinecraftClient[] |
allDescendingArray()
Get all available Minecraft releases, both releases and pre-releases or snapshots, in
Type.DESCENDING order. |
java.lang.String[] |
allVersionsArrayAscending()
Get an array of all available Minecraft versions of the
Type.RELEASE and
Type.SNAPSHOT in Type.ASCENDING order. |
java.lang.String[] |
allVersionsArrayDescending()
Get an array of all available Minecraft versions of the
Type.RELEASE and
Type.SNAPSHOT in Type.DESCENDING order. |
java.util.List<java.lang.String> |
allVersionsAscending()
Get a list of all available Minecraft versions of the
Type.RELEASE and
Type.SNAPSHOT in Type.ASCENDING order. |
java.util.List<java.lang.String> |
allVersionsDescending()
Get a list of all available Minecraft versions of the
Type.RELEASE and
Type.SNAPSHOT in Type.DESCENDING order. |
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.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. |
java.util.List<java.lang.String> |
snapshotVersionsDescending()
Get the list of available Minecraft version of the
Type.SNAPSHOT in
Type.DESCENDING order. |
void |
update()
Update the
MinecraftClientMeta and MinecraftServerMeta. |
public MinecraftMeta(java.io.File minecraftManifest,
ForgeMeta injectedForgeMeta,
Utilities utilities,
ApplicationProperties applicationProperties)
minecraftManifest - Minecraft manifest file.injectedForgeMeta - To acquire Forge instances for this MinecraftClient
version.utilities - Commonly used utilities across ServerPackCreator.applicationProperties - ServerPackCreator settings.public void update()
throws java.io.IOException
MinecraftClientMeta and MinecraftServerMeta. Usually called after
the manifest-files have been refreshed.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 - The Minecraft-version.true if a MinecraftClient is available.public java.util.Optional<MinecraftClient> getClient(java.lang.String minecraftVersion)
MinecraftClient wrapped in an Optional.minecraftVersion - Minecraft version.Optionalpublic java.lang.String[] releaseVersionsArrayDescending()
Type.RELEASE in
Type.DESCENDING order.Type.RELEASE versions in
Type.DESCENDING order.public java.util.List<java.lang.String> releaseVersionsDescending()
Type.RELEASE in
Type.DESCENDING order.Type.RELEASE versions in
Type.DESCENDING order.public java.util.List<MinecraftClient> releasesDescending()
MinecraftClient of the Type.RELEASE, in ascending
order.public java.lang.String[] releaseVersionsArrayAscending()
Type.RELEASE in
Type.ASCENDING order.Type.RELEASE versions in
Type.ASCENDING order.public java.util.List<java.lang.String> releaseVersionsAscending()
Type.RELEASE in
Type.ASCENDING order.Type.RELEASE versions in Type.ASCENDING
order.public java.lang.String[] snapshotVersionsArrayDescending()
Type.SNAPSHOT in
Type.DESCENDING order.Type.SNAPSHOT versions in
Type.DESCENDING order.public java.util.List<java.lang.String> snapshotVersionsDescending()
Type.SNAPSHOT in
Type.DESCENDING order.Type.SNAPSHOT versions in
Type.DESCENDING order.public java.util.List<MinecraftClient> snapshotsDescending()
MinecraftClient of the Type.SNAPSHOT, in ascending
order.public java.lang.String[] snapshotVersionsArrayAscending()
Type.SNAPSHOT in
Type.ASCENDING order.Type.SNAPSHOT versions in
Type.ASCENDING order.public java.util.List<java.lang.String> snapshotVersionsAscending()
Type.SNAPSHOT in
Type.ASCENDING order.Type.SNAPSHOT versions in
Type.ASCENDING order.public java.lang.String[] allVersionsArrayDescending()
Type.RELEASE and
Type.SNAPSHOT in Type.DESCENDING order.public java.util.List<java.lang.String> allVersionsDescending()
Type.RELEASE and
Type.SNAPSHOT in Type.DESCENDING order.public java.util.List<MinecraftClient> allDescending()
Type.DESCENDING order.public java.lang.String[] allVersionsArrayAscending()
Type.RELEASE and
Type.SNAPSHOT in Type.ASCENDING order.public java.util.List<java.lang.String> allVersionsAscending()
Type.RELEASE and
Type.SNAPSHOT in Type.ASCENDING order.public java.util.List<MinecraftClient> allAscending()
Type.ASCENDING order.public MinecraftClient latestRelease()
MinecraftClient.public MinecraftClient latestSnapshot()
MinecraftClient.public MinecraftClient[] releasesArrayDescending()
MinecraftClient of the Type.RELEASE, in ascending
order.public MinecraftClient[] releasesArrayAscending()
MinecraftClient of the Type.RELEASE, in
descending order.public java.util.List<MinecraftClient> releasesAscending()
MinecraftClient of the Type.RELEASE, in descending
order.public MinecraftClient[] snapshotsArrayDescending()
MinecraftClient of the Type.SNAPSHOT, in
ascending order.public MinecraftClient[] snapshotsArrayAscending()
MinecraftClient of the Type.SNAPSHOT, in
descending order.public java.util.List<MinecraftClient> snapshotsAscending()
MinecraftClient of the Type.SNAPSHOT, in descending
order.public MinecraftClient[] allDescendingArray()
Type.DESCENDING order.public MinecraftClient[] allAscendingArray()
Type.ASCENDING order.public boolean checkServerAvailability(java.lang.String minecraftVersion)
MinecraftServer is available for the specified Minecraft-version.minecraftVersion - The Minecraft-version.true if a MinecraftServer is available.public java.util.Optional<MinecraftServer> getServer(java.lang.String minecraftVersion)
MinecraftServer for the specified Minecraft-version, wrapped in an
Optional.minecraftVersion - The Minecraft-version.Optionalpublic MinecraftServer latestReleaseServer()
Optionalpublic MinecraftServer latestSnapshotServer()
Optionalpublic MinecraftServer[] releasesServersArrayDescending()
public java.util.List<MinecraftServer> releasesServersDescending()
public MinecraftServer[] releasesServersArrayAscending()
public java.util.List<MinecraftServer> releasesServersAscending()
public MinecraftServer[] snapshotsServersArrayDescending()
MinecraftServer of the Type.SNAPSHOT, in
ascending order.public java.util.List<MinecraftServer> snapshotsServersDescending()
public MinecraftServer[] snapshotsServersArrayAscending()
MinecraftServer of the Type.SNAPSHOT, in
descending order.public java.util.List<MinecraftServer> snapshotsServersAscending()
MinecraftServer of the Type.SNAPSHOT, in descending
order.