From 8836bf8419cb777a19e4a5498be785f0ac65c48a Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Wed, 20 Jul 2011 00:03:16 +0100 Subject: [PATCH] Added world.getMaxHeight (currently static until 1.8) --- src/main/java/org/bukkit/World.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index c2991781..b09fb131 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -667,6 +667,15 @@ public interface World { */ public double getHumidity(int x, int z); + /** + * Gets the maximum height of this world. + * + * If the max height is 100, there are only blocks from y=0 to y=99. + * + * @return Maximum height of the world + */ + public int getMaxHeight(); + /** * Represents various map environment types that a world may be */