Skip to content

Commit 717e460

Browse files
committed
Merge branch 'api-16' into api-17
2 parents 2a5c338 + c14aa91 commit 717e460

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-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
*

src/main/java/org/spongepowered/api/event/cause/entity/MovementTypes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)