public final class MinecraftVersions
extends java.lang.Object
Minecraft updates all follow the `major.minor.patch` format. This utility
separates this into two classes: MinecraftVersions.Update and MinecraftVersions.Version. An MinecraftVersions.Update is a
"named" update from Minecraft, such as "1.13" (UPDATE_AQUATIC). If you
need to get more specific, you can use a MinecraftVersions.Version object, which is a patch
for an MinecraftVersions.Update, such as "1.13.2".
You can get a specific MinecraftVersions.Version object calling MinecraftVersions.Update.get(int) with the patch
number.
Note that this utility will need to be updated to access newer versions of Minecraft. If
this utility is used on a newer version of Minecraft, it will be parsed into an "unknown"
version, which will still be able to function as expected (Using MinecraftVersions.Version.isAtLeast()
will still work, for example). However, updates() and versions() will not
contain the newer versions.
| Modifier and Type | Class and Description |
|---|---|
static class |
MinecraftVersions.Update
Represents a "big" Minecraft update, e.g., 1.13 -> 1.14
|
static class |
MinecraftVersions.Version
Holds a specific version of an update, formatted in major.minor.patch.
|
| Modifier and Type | Field and Description |
|---|---|
static @NotNull MinecraftVersions.Update |
BUZZY_BEES
1.15, bees update (bug fixes, bees)
|
static @NotNull MinecraftVersions.Update |
CAVES_AND_CLIFFS_1
1.17, caves and cliffs part 1 (tuff, new mobs, new blocks)
|
static @NotNull MinecraftVersions.Update |
CAVES_AND_CLIFFS_2
1.18, caves and cliffs part 2 (new generations)
|
static @NotNull MinecraftVersions.Update |
NETHER_UPDATE
1.16, nether update (crimson, fungus, nether generation, biome fogs)
|
static @NotNull MinecraftVersions.Update |
TRAILS_AND_TAILS
1.20, the archaeology update (cherry grove, sniffers, etc.)
|
static @NotNull MinecraftVersions.Update |
TRICKY_TRIALS
1.21, the dungeons update (mace, new potions, new paintings, etc.)
|
static @NotNull MinecraftVersions.Update |
UPDATE_AQUATIC
1.13, ocean update (the flattening, waterloggable blocks, sprint swimming, brigadier commands)
|
static @NotNull MinecraftVersions.Update |
VILLAGE_AND_PILLAGE
1.14, villagers update (sneaking below slabs, new village generation)
|
static @NotNull MinecraftVersions.Update |
WILD_UPDATE
1.19, the deep dark update (sculk, warden, mud, mangrove, etc.)
|
static @NotNull MinecraftVersions.Update |
WORLD_OF_COLOR
1.12, the colorful blocks update (concrete)
|
| Modifier and Type | Method and Description |
|---|---|
static @NotNull MinecraftVersions.Version |
getCurrent()
Returns the current Minecraft version.
|
static @NotNull java.util.Map<java.lang.String,MinecraftVersions.Update> |
updates()
Returns an immutable map of all updates.
|
static @NotNull java.util.Map<java.lang.String,MinecraftVersions.Version> |
versions()
Returns an immutable map of all versions.
|
@NotNull public static final @NotNull MinecraftVersions.Update WORLD_OF_COLOR
@NotNull public static final @NotNull MinecraftVersions.Update UPDATE_AQUATIC
@NotNull public static final @NotNull MinecraftVersions.Update VILLAGE_AND_PILLAGE
@NotNull public static final @NotNull MinecraftVersions.Update BUZZY_BEES
@NotNull public static final @NotNull MinecraftVersions.Update NETHER_UPDATE
@NotNull public static final @NotNull MinecraftVersions.Update CAVES_AND_CLIFFS_1
@NotNull public static final @NotNull MinecraftVersions.Update CAVES_AND_CLIFFS_2
@NotNull public static final @NotNull MinecraftVersions.Update WILD_UPDATE
@NotNull public static final @NotNull MinecraftVersions.Update TRAILS_AND_TAILS
@NotNull public static final @NotNull MinecraftVersions.Update TRICKY_TRIALS
@NotNull public static @NotNull java.util.Map<java.lang.String,MinecraftVersions.Update> updates()
The key is the result of MinecraftVersions.Update.toString(), and the value is the
MinecraftVersions.Update object.
@NotNull public static @NotNull java.util.Map<java.lang.String,MinecraftVersions.Version> versions()
The key is the result of MinecraftVersions.Version.toString(), and the value is the
MinecraftVersions.Version object.
@NotNull public static @NotNull MinecraftVersions.Version getCurrent()