From 777e24e5b5564b9e1f48a4b4fb1889851aaaeaf7 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Sat, 6 Feb 2021 22:15:06 +0000 Subject: [PATCH] Deprecate PlayerLeaveBedEvent#setBedSpawn this is no longer attached to anything, and from a glance it looks like the point at which this information is set has moved to a place which wouldn't fall in line in a way that we could re-implement these without breaking vanilla behaivior Also, just noticed that we apparently need to give our own javadocs some love at some point --- ...upstream-javadoc-warnings-and-errors.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Spigot-API-Patches/Fix-upstream-javadoc-warnings-and-errors.patch b/Spigot-API-Patches/Fix-upstream-javadoc-warnings-and-errors.patch index f4e67de1a..a1b9992a0 100644 --- a/Spigot-API-Patches/Fix-upstream-javadoc-warnings-and-errors.patch +++ b/Spigot-API-Patches/Fix-upstream-javadoc-warnings-and-errors.patch @@ -50,6 +50,30 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 * @deprecated Use {@link #sendTitle(Title)} or {@link #updateTitle(Title)} */ @Deprecated +diff --git a/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java b/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java ++++ b/src/main/java/org/bukkit/event/player/PlayerBedLeaveEvent.java +@@ -0,0 +0,0 @@ public class PlayerBedLeaveEvent extends PlayerEvent implements Cancellable { + * {@link Player#setBedSpawnLocation(Location)}. + * + * @return true if the spawn location will be changed ++ * @deprecated NOT IMPLEMENTED + */ ++ @Deprecated // Paper + public boolean shouldSetSpawnLocation() { + return setBedSpawn; + } +@@ -0,0 +0,0 @@ public class PlayerBedLeaveEvent extends PlayerEvent implements Cancellable { + * {@link Player#setBedSpawnLocation(Location)}. + * + * @param setBedSpawn true to change the new spawn location ++ * @deprecated NOT IMPLEMENTED + */ ++ @Deprecated // Paper + public void setSpawnLocation(boolean setBedSpawn) { + this.setBedSpawn = setBedSpawn; + } diff --git a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java