Commits

Spottedleaf authored and md_5 committed 26e1774edfa
Add API for per-world view distances

Adapted from Spigot commit ea7e48b3e6d973551afe440a8cbc6d96a49d10fc.
No tags

src/main/java/org/bukkit/World.java

Modified
1529 1529 public void setDifficulty(@NotNull Difficulty difficulty);
1530 1530
1531 1531 /**
1532 1532 * Gets the Difficulty of the world.
1533 1533 *
1534 1534 * @return The difficulty of the world.
1535 1535 */
1536 1536 @NotNull
1537 1537 public Difficulty getDifficulty();
1538 1538
1539 + /**
1540 + * Returns the view distance used for this world.
1541 + *
1542 + * @return the view distance used for this world
1543 + */
1544 + int getViewDistance();
1545 +
1539 1546 /**
1540 1547 * Gets the folder of this world on disk.
1541 1548 *
1542 1549 * @return The folder of this world.
1543 1550 */
1544 1551 @NotNull
1545 1552 public File getWorldFolder();
1546 1553
1547 1554 /**
1548 1555 * Gets the type of this world.

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut