From 3c93c1643da679670b020fe2a8049b2457f9a77a Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Thu, 1 Mar 2012 15:27:34 +0000 Subject: Added isEmpty to BlockChangeDelegate - this implements BUKKIT-868. Also changed version to 1.2.2-R0.1-SNAPSHOT for the upcoming beta. --- pom.xml | 2 +- src/main/java/org/bukkit/BlockChangeDelegate.java | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 615a33a7..0e750644 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.bukkit bukkit - 1.2.2-R0-SNAPSHOT + 1.2.2-R0.1-SNAPSHOT Bukkit http://www.bukkit.org diff --git a/src/main/java/org/bukkit/BlockChangeDelegate.java b/src/main/java/org/bukkit/BlockChangeDelegate.java index 78c7b7bc..7f4261e6 100644 --- a/src/main/java/org/bukkit/BlockChangeDelegate.java +++ b/src/main/java/org/bukkit/BlockChangeDelegate.java @@ -46,4 +46,14 @@ public interface BlockChangeDelegate { * @return Height of the world */ public int getHeight(); + + /** + * Checks if the specified block is empty (air) or not. + * + * @param x X coordinate + * @param y Y coordinate + * @param z Z coordinate + * @return True if the block is considered empty. + */ + public boolean isEmpty(int x, int y, int z); } -- cgit v1.2.3