Revert "Interface for changing the view distance."
This commit is contained in:
parent
1c4aba8d1f
commit
6f5747d8b8
@ -57,6 +57,13 @@ public interface Server {
|
|||||||
*/
|
*/
|
||||||
public int getPort();
|
public int getPort();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the view distance from this server.
|
||||||
|
*
|
||||||
|
* @return The view distance from this server.
|
||||||
|
*/
|
||||||
|
public int getViewDistance();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the IP that this server is bound to or empty string if not specified
|
* Get the IP that this server is bound to or empty string if not specified
|
||||||
*
|
*
|
||||||
@ -339,26 +346,4 @@ public interface Server {
|
|||||||
* @return Whether this server allows flying or not.
|
* @return Whether this server allows flying or not.
|
||||||
*/
|
*/
|
||||||
public boolean getAllowFlight();
|
public boolean getAllowFlight();
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the default view distance of this server.
|
|
||||||
*
|
|
||||||
* The view distance is a measure of how far a player can see.
|
|
||||||
* It affects the number of chunks loaded and updated around every player.
|
|
||||||
*
|
|
||||||
* @return The default view distance of the server.
|
|
||||||
*/
|
|
||||||
public int getViewDistance();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the default view distance for this server.
|
|
||||||
*
|
|
||||||
* The view distance is a measure of how far a player can see.
|
|
||||||
* It affects the number of chunks loaded and updated around every player.
|
|
||||||
* The view distance must be in the range [3,15].
|
|
||||||
*
|
|
||||||
* @param viewDistance an integer between 3 and 15 inclusive
|
|
||||||
* @throws IllegalArgumentException If view distance is less than 3 or greater than 15
|
|
||||||
*/
|
|
||||||
public void setViewDistance(int viewDistance) throws IllegalArgumentException;
|
|
||||||
}
|
}
|
||||||
|
@ -700,38 +700,6 @@ public interface World {
|
|||||||
*/
|
*/
|
||||||
public void setKeepSpawnInMemory(boolean keepLoaded);
|
public void setKeepSpawnInMemory(boolean keepLoaded);
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the view distance of this world.
|
|
||||||
*
|
|
||||||
* The view distance is a measure of how far a player can see.
|
|
||||||
* It affects the number of chunks loaded and updated around every player.
|
|
||||||
*
|
|
||||||
* @return Current view distance of the world
|
|
||||||
*/
|
|
||||||
public int getViewDistance();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the view distance for this world.
|
|
||||||
*
|
|
||||||
* The view distance is a measure of how far a player can see.
|
|
||||||
* It affects the number of chunks loaded and updated around every player.
|
|
||||||
* The view distance must be in the range [3,15]
|
|
||||||
*
|
|
||||||
* @param viewDistance an integer between 3 and 15 inclusive
|
|
||||||
* @throws IllegalArgumentException If view distance is less than 3 or greater than 15
|
|
||||||
*/
|
|
||||||
public void setViewDistance(int viewDistance) throws IllegalArgumentException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the view distance for this world back to server defaults.
|
|
||||||
*/
|
|
||||||
public void resetViewDistance();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return if the view distance has been set for this world
|
|
||||||
*/
|
|
||||||
boolean isViewDistanceSet();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents various map environment types that a world may be
|
* Represents various map environment types that a world may be
|
||||||
*/
|
*/
|
||||||
|
@ -300,25 +300,4 @@ public interface Player extends HumanEntity, CommandSender {
|
|||||||
*/
|
*/
|
||||||
public void resetPlayerTime();
|
public void resetPlayerTime();
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the view distance for this player.
|
|
||||||
* View distance will remain constant, even between worlds, until it is changed or reset to default.
|
|
||||||
* @param viewDistance the number of chunks this player can see.
|
|
||||||
*/
|
|
||||||
void setViewDistance(int viewDistance);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the number of chunks this player can see
|
|
||||||
*/
|
|
||||||
int getViewDistance();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set this players view distance back to the same as whichever world they are on.
|
|
||||||
*/
|
|
||||||
void resetViewDistance();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return if the view distance has been set for this player specifically.
|
|
||||||
*/
|
|
||||||
boolean isViewDistanceSet();
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user