Per-world view distance
adds
@@ -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);
@@ -447,4 +446,25 @@ default void setSerializationBehavior(SerializationBehavior behavior) {
* @throws IOException If the save failed
*/
boolean save() throws IOException;
+
+ /**
+ * Gets the view distance (in chunks) for this world.
+ *
+ * @return The view distance
+ */
+ int getViewDistance();
+
+ /**
+ * Sets the view distance (in chunks) 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);
+
+ /**
+ * Resets the view distance to the default value for this world.
+ */
+ void resetViewDistance();
}
