Commits

md_5 authored 15ba9ae78ad
SPIGOT-6357: Add World#getMinHeight
No tags

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

Modified
1498 1498 * It is safe to run this method when the block does not exist, it will
1499 1499 * not create the block.
1500 1500 *
1501 1501 * @param x X coordinate of the block
1502 1502 * @param y Y coordinate of the block
1503 1503 * @param z Z coordinate of the block
1504 1504 * @return Humidity of the requested block
1505 1505 */
1506 1506 public double getHumidity(int x, int y, int z);
1507 1507
1508 + /**
1509 + * Gets the minimum height of this world.
1510 + * <p>
1511 + * If the min height is 0, there are only blocks from y=0.
1512 + *
1513 + * @return Minimum height of the world
1514 + */
1515 + public int getMinHeight();
1516 +
1508 1517 /**
1509 1518 * Gets the maximum height of this world.
1510 1519 * <p>
1511 1520 * If the max height is 100, there are only blocks from y=0 to y=99.
1512 1521 *
1513 1522 * @return Maximum height of the world
1514 1523 */
1515 1524 public int getMaxHeight();
1516 1525
1517 1526 /**

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

Add shortcut