File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
src/main/java/org/spongepowered/api Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 2727import org .spongepowered .api .event .server .ClientPingServerEvent ;
2828import org .spongepowered .api .network .status .StatusResponse ;
2929
30+ import java .util .Optional ;
3031import 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 *
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ public final class MovementTypes {
5757
5858 public static final DefaultedRegistryReference <MovementType > PORTAL = MovementTypes .key (ResourceKey .sponge ("portal" ));
5959
60+ public static final DefaultedRegistryReference <MovementType > SPECTATOR = MovementTypes .key (ResourceKey .sponge ("spectator" ));
61+
6062 // SORTFIELDS:OFF
6163
6264 // @formatter:on
You can’t perform that action at this time.
0 commit comments