From 04d4054c16ad3b792ae6f6f3d6595d0f6cc2871d Mon Sep 17 00:00:00 2001 From: Mariell Date: Sun, 27 Dec 2020 12:37:37 +0100 Subject: [PATCH] [CI-SKIP] Deprecate the view distance APIs on Player (#4945) --- Spigot-API-Patches/Add-player-view-distance-API.patch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Spigot-API-Patches/Add-player-view-distance-API.patch b/Spigot-API-Patches/Add-player-view-distance-API.patch index bbaa40099f..b768d724e5 100644 --- a/Spigot-API-Patches/Add-player-view-distance-API.patch +++ b/Spigot-API-Patches/Add-player-view-distance-API.patch @@ -17,14 +17,22 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + * Gets the view distance for this player + * + * @return the player's view distance ++ * @deprecated This is unimplemented and will throw an exception at runtime. The {@link org.bukkit.World World}-based methods still work. ++ * @see org.bukkit.World#getViewDistance() ++ * @see org.bukkit.World#getNoTickViewDistance() + */ ++ @Deprecated + public int getViewDistance(); + + /** + * Sets the view distance for this player + * + * @param viewDistance the player's view distance ++ * @deprecated This is unimplemented and will throw an exception at runtime. The {@link org.bukkit.World World}-based methods still work. ++ * @see org.bukkit.World#setViewDistance(int) ++ * @see org.bukkit.World#setNoTickViewDistance(int) + */ ++ @Deprecated + public void setViewDistance(int viewDistance); // Paper end