Add view-distance setter
@@ -122,6 +122,14 @@ default boolean isViewingInventory() {
*/
int getViewDistance();
+ /**
+ * Sets the view distance setting of the player. This value represents the
+ * radius (around the player) in unit chunks.
+ *
+ * @param distance The player's view distance
+ */
+ void setViewDistance(int distance);
+
/**
* Gets the current player chat visibility setting.
*
