mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
[CI-SKIP] Deprecate the view distance APIs on Player (#4945)
This commit is contained in:
@@ -17,14 +17,22 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ * Gets the view distance for this player
|
+ * Gets the view distance for this player
|
||||||
+ *
|
+ *
|
||||||
+ * @return the player's view distance
|
+ * @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();
|
+ public int getViewDistance();
|
||||||
+
|
+
|
||||||
+ /**
|
+ /**
|
||||||
+ * Sets the view distance for this player
|
+ * Sets the view distance for this player
|
||||||
+ *
|
+ *
|
||||||
+ * @param viewDistance the player's view distance
|
+ * @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);
|
+ public void setViewDistance(int viewDistance);
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user