We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e6532b3 + cbf8f6f commit 9475ca7Copy full SHA for 9475ca7
src/main/java/org/spongepowered/api/MinecraftVersion.java
@@ -27,6 +27,7 @@
27
import org.spongepowered.api.event.server.ClientPingServerEvent;
28
import org.spongepowered.api.network.status.StatusResponse;
29
30
+import java.util.Optional;
31
import java.util.OptionalInt;
32
33
/**
@@ -44,6 +45,14 @@ public interface MinecraftVersion extends Comparable<MinecraftVersion> {
44
45
*/
46
String name();
47
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
+
56
57
* Gets the protocol version of this Minecraft version.
58
*
0 commit comments