-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
view distance #1659
view distance #1659
Conversation
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should specify that the value is in chunks
* | ||
* @param viewDistance The view distance | ||
*/ | ||
void setViewDistance(final int viewDistance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we have no way of unsetting a world's view distance (setting it to use the global setting rather).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as per SpongePowered/Sponge#1557 (diff) sending a value of -1 resets it.
if this remains in the API, it needs to be documented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can probably do better than that
This needs to be updated to address @Deamon5550 's concerns above. |
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
SpongeAPI | SpongeCommon
adds #1658