Skip to content

Commit

Permalink
view distance
Browse files Browse the repository at this point in the history
adds #1658
  • Loading branch information
kashike committed Oct 4, 2017
1 parent f9d00ec commit 360e290
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/main/java/org/spongepowered/api/world/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,6 @@ default void setSerializationBehavior(SerializationBehavior behavior) {
* Causes an {@link Explosion} in a world.
*
* @param explosion The explosion to cause
* @param cause The cause for the explosion
*/
void triggerExplosion(Explosion explosion);

Expand Down Expand Up @@ -447,4 +446,20 @@ default void setSerializationBehavior(SerializationBehavior behavior) {
* @throws IOException If the save failed
*/
boolean save() throws IOException;

/**
* Gets the view distance for this world.
*
* @return The view distance
*/
int getViewDistance();

/**
* Sets the view distance for this world.
*
* <p>The view distance must be greater than or equal to 3, andless than or equal to 32.</p>
*
* @param viewDistance The view distance
*/
void setViewDistance(final int viewDistance);
}

0 comments on commit 360e290

Please sign in to comment.