mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
[CI-SKIP] Deprecate the view distance APIs on Player (#4945)
This commit is contained in:
parent
25980711f0
commit
04d4054c16
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue