Skip to content

Commit 9475ca7

Browse files
committed
Merge branch 'api-12' into api-14
2 parents e6532b3 + cbf8f6f commit 9475ca7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/org/spongepowered/api/MinecraftVersion.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.spongepowered.api.event.server.ClientPingServerEvent;
2828
import org.spongepowered.api.network.status.StatusResponse;
2929

30+
import java.util.Optional;
3031
import java.util.OptionalInt;
3132

3233
/**
@@ -44,6 +45,14 @@ public interface MinecraftVersion extends Comparable<MinecraftVersion> {
4445
*/
4546
String name();
4647

48+
/**
49+
* Gets the id of this Minecraft version.
50+
*
51+
* @implNote The version id will not be available in a status response.
52+
* @return The version id
53+
*/
54+
Optional<String> id();
55+
4756
/**
4857
* Gets the protocol version of this Minecraft version.
4958
*

0 commit comments

Comments
 (0)