diff options
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | src/main/java/org/bukkit/BlockChangeDelegate.java | 10 |
2 files changed, 11 insertions, 1 deletions
@@ -2,7 +2,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.bukkit</groupId> <artifactId>bukkit</artifactId> - <version>1.2.2-R0-SNAPSHOT</version> + <version>1.2.2-R0.1-SNAPSHOT</version> <name>Bukkit</name> <url>http://www.bukkit.org</url> 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); } |