From 87927f448420ee955441cc0e76c76eb788e0030c Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 18 Aug 2020 17:54:34 +1000 Subject: [PATCH] #543: Let World#setSpawnLocation() support an angle By: Parker Hawke --- paper-api/src/main/java/org/bukkit/World.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 9ba89dd223..3f25bd3371 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -887,9 +887,19 @@ public interface World extends PluginMessageRecipient, Metadatable { * @param location The {@link Location} to set the spawn for this world at. * @return True if it was successfully set. */ - @NotNull public boolean setSpawnLocation(@NotNull Location location); + /** + * Sets the spawn location of the world + * + * @param x X coordinate + * @param y Y coordinate + * @param z Z coordinate + * @param angle the angle + * @return True if it was successfully set. + */ + public boolean setSpawnLocation(int x, int y, int z, float angle); + /** * Sets the spawn location of the world *