Add player view distance API
This commit is contained in:
parent
d07fe95b65
commit
7f032d52e6
2 changed files with 179 additions and 0 deletions
40
Spigot-API-Patches/0011-Add-player-view-distance-API.patch
Normal file
40
Spigot-API-Patches/0011-Add-player-view-distance-API.patch
Normal file
|
@ -0,0 +1,40 @@
|
|||
From 53ad29ca507c248633ae0e1e2b0c9ecde5569891 Mon Sep 17 00:00:00 2001
|
||||
From: Byteflux <byte@byteflux.net>
|
||||
Date: Wed, 1 Jul 2015 00:59:50 -0700
|
||||
Subject: [PATCH] Add player view distance API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
||||
index 9d23835..53abb36 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Player.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Player.java
|
||||
@@ -1162,6 +1162,26 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
||||
{
|
||||
throw new UnsupportedOperationException( "Not supported yet" );
|
||||
}
|
||||
+
|
||||
+ /**
|
||||
+ * Get the view distance for this player
|
||||
+ *
|
||||
+ * @return View distance
|
||||
+ */
|
||||
+ public int getViewDistance()
|
||||
+ {
|
||||
+ throw new UnsupportedOperationException( "Not supported yet" );
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
+ * Set the view distance for this player
|
||||
+ *
|
||||
+ * @param viewDistance View distance
|
||||
+ */
|
||||
+ public void setViewDistance(int viewDistance)
|
||||
+ {
|
||||
+ throw new UnsupportedOperationException( "Not supported yet" );
|
||||
+ }
|
||||
}
|
||||
|
||||
Spigot spigot();
|
||||
--
|
||||
1.9.5.msysgit.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue