diff options
author | FrozenCow <frozencow@gmail.com> | 2011-01-04 05:57:56 +0800 |
---|---|---|
committer | Dinner Bone <dinnerbone@dinnerbone.com> | 2011-01-04 06:05:37 +0800 |
commit | 08b38c850b4863de778eda4b20a7f7e013e1ae79 (patch) | |
tree | cae36b4740e1a20e573d40998731c0d1afb58312 /src | |
parent | bdec088e655398b41ce2b8c6767e4273dc6df55a (diff) | |
download | bukkit-08b38c850b4863de778eda4b20a7f7e013e1ae79.tar bukkit-08b38c850b4863de778eda4b20a7f7e013e1ae79.tar.gz bukkit-08b38c850b4863de778eda4b20a7f7e013e1ae79.tar.lz bukkit-08b38c850b4863de778eda4b20a7f7e013e1ae79.tar.xz bukkit-08b38c850b4863de778eda4b20a7f7e013e1ae79.zip |
Added getHighestBlockYAt
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/World.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index 5b03ebff..e9d00810 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -21,6 +21,14 @@ public interface World { public Block getBlockAt(int x, int y, int z); /** + * Gets the highest non-air coordinate at the given (x,z) location + * @param x X-coordinate of the blocks + * @param z Z-coordinate of the blocks + * @return Y-coordinate of the highest non-air block + */ + public int getHighestBlockYAt(int x, int z); + + /** * Gets the chunk at the given location * * @param x X-coordinate of the chunk |