From 7669ccd2065bac82489f6a93518b04d9aa7a6313 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 15 Jan 2011 21:02:47 +0100 Subject: [PATCH] Added int getBlockTypeIdAt(int x, int y, int z) to World By: Erik Broes --- paper-api/src/main/java/org/bukkit/World.java | 10 ++++++++++ 1 file changed, 10 insertions(+) mode change 100644 => 100755 paper-api/src/main/java/org/bukkit/World.java diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java old mode 100644 new mode 100755 index bbf31035ca..45acbeca6d --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -20,6 +20,16 @@ public interface World { */ public Block getBlockAt(int x, int y, int z); + /** + * Gets the block type-id at the given location + * + * @param x X-coordinate of the block + * @param y Y-coordinate of the block + * @param z Z-coordinate of the block + * @return TypeId of the block at the given location + */ + public int getBlockTypeIdAt(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