From 7cc50467e2a678b8b277cab7a8839f221bb20476 Mon Sep 17 00:00:00 2001 From: LeoDog896 Date: Sun, 19 Sep 2021 08:25:22 -0400 Subject: [PATCH 1/2] Update RelativeVec.java --- .../java/net/minestom/server/utils/location/RelativeVec.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/minestom/server/utils/location/RelativeVec.java b/src/main/java/net/minestom/server/utils/location/RelativeVec.java index 254a1c452..b7fb5a7ce 100644 --- a/src/main/java/net/minestom/server/utils/location/RelativeVec.java +++ b/src/main/java/net/minestom/server/utils/location/RelativeVec.java @@ -27,6 +27,10 @@ public final class RelativeVec { this.relativeZ = relativeZ; } + public @NotNull CoordinateType getCoordinateType() { + return this.coordinateType; + } + /** * Gets the location based on the relative fields and {@code position}. * From 7c6c583ce1acb54eed06fa80c56078ee2cefc436 Mon Sep 17 00:00:00 2001 From: LeoDog896 Date: Sun, 19 Sep 2021 08:36:27 -0400 Subject: [PATCH 2/2] Record getter --- .../java/net/minestom/server/utils/location/RelativeVec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/utils/location/RelativeVec.java b/src/main/java/net/minestom/server/utils/location/RelativeVec.java index b7fb5a7ce..47b4b4b47 100644 --- a/src/main/java/net/minestom/server/utils/location/RelativeVec.java +++ b/src/main/java/net/minestom/server/utils/location/RelativeVec.java @@ -27,7 +27,7 @@ public final class RelativeVec { this.relativeZ = relativeZ; } - public @NotNull CoordinateType getCoordinateType() { + public @NotNull CoordinateType coordinateType() { return this.coordinateType; }