13
0
geforkt von Mirrors/Paper

[CI-SKIP] Deprecate the view distance APIs on Player (#4945)

Dieser Commit ist enthalten in:
Mariell 2020-12-27 12:37:37 +01:00
Ursprung 25980711f0
Commit 04d4054c16

Datei anzeigen

@ -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 <i>will</i> 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 <i>will</i> 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