From c27b838dad76349661fda52bf3804d3a679561c3 Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 24 Jul 2023 19:00:56 +0100 Subject: [PATCH] fix: add missing method in UncheckedWorldLocation (#4112) Co-authored-by: Alexander Brandes --- .../core/location/UncheckedWorldLocation.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java b/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java index 38183269b..173820ddb 100644 --- a/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java +++ b/Core/src/main/java/com/plotsquared/core/location/UncheckedWorldLocation.java @@ -60,6 +60,19 @@ public final class UncheckedWorldLocation extends Location { return new UncheckedWorldLocation(world, x, y, z); } + /** + * Construct a new location with yaw and pitch equal to 0 + * + * @param world World + * @param loc Coordinates + * @return New location + * @since TODO + */ + @DoNotUse + public static @NonNull UncheckedWorldLocation at(final @NonNull String world, BlockVector3 loc) { + return new UncheckedWorldLocation(world, loc.getX(), loc.getY(), loc.getZ()); + } + @Override @DoNotUse public @NonNull String getWorldName() {