Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/main/java/org/spongepowered/api/MinecraftVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.spongepowered.api.event.server.ClientPingServerEvent;
import org.spongepowered.api.network.status.StatusResponse;

import java.util.Optional;
import java.util.OptionalInt;

/**
Expand All @@ -44,6 +45,14 @@ public interface MinecraftVersion extends Comparable<MinecraftVersion> {
*/
String name();

/**
* Gets the id of this Minecraft version.
*
* @implNote The version id will not be available in a status response.
* @return The version id
*/
Optional<String> id();

/**
* Gets the protocol version of this Minecraft version.
*
Expand Down