From c16bd08b1890d116aa1d5460d6938d8dbbbb03b6 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 4 Jan 2011 05:57:56 +0800 Subject: [PATCH] Added getHighestBlockYAt By: FrozenCow --- paper-api/src/main/java/org/bukkit/World.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 5b03ebffa..e9d008104 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -20,6 +20,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 *