Skip to content

Commit

Permalink
Add 1.17 and 1.18 to MinecraftVersions (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
powercasgamer authored Jan 29, 2022
1 parent 5cb9069 commit cde2b60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ public final class MinecraftVersion implements Comparable<MinecraftVersion> {
/**
* The newest known version of Minecraft
*/
private static final String NEWEST_MINECRAFT_VERSION = "1.16.2";
private static final String NEWEST_MINECRAFT_VERSION = "1.18.1";

/**
* The date (with ISO 8601 or YYYY-MM-DD) when the most recent version was released.
*/
private static final String MINECRAFT_LAST_RELEASE_DATE = "2020-08-11";
private static final String MINECRAFT_LAST_RELEASE_DATE = "2021-12-10";

/**
* Gets the {@link MinecraftVersion} of the runtime server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
*/
public final class MinecraftVersions {

/**
* Version 1.18 - caves and cliffs part 2
*/
public static final MinecraftVersion v1_18 = MinecraftVersion.parse("1.18");

/**
* Version 1.17 - caves and cliffs part 1
*/
public static final MinecraftVersion v1_17 = MinecraftVersion.parse("1.17");

/**
* Version 1.16 - nether update
*/
Expand Down

0 comments on commit cde2b60

Please sign in to comment.