summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorKevin <kingersoll@gmail.com>2011-12-11 21:13:45 -0800
committerKevin <kingersoll@gmail.com>2011-12-11 21:13:45 -0800
commit022bae1198bf243babdc8aac0f8b7e00d97e43e7 (patch)
treef6cd61dec3e2fdd90f080c5fc9a322ec94920595 /src/main
parent7f06f7ffa830bb31da279db3093bc82a5728eba4 (diff)
downloadbukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.tar
bukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.tar.gz
bukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.tar.lz
bukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.tar.xz
bukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.zip
Adds Location.getChunk()
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/Location.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Location.java b/src/main/java/org/bukkit/Location.java
index 70a3f1ea..6ee1852e 100644
--- a/src/main/java/org/bukkit/Location.java
+++ b/src/main/java/org/bukkit/Location.java
@@ -64,6 +64,15 @@ public class Location implements Cloneable {
}
/**
+ * Gets the chunk at the represented location
+ *
+ * @return Chunk at the represented location
+ */
+ public Chunk getChunk() {
+ return world.getChunkAt(this);
+ }
+
+ /**
* Gets the block at the represented location
*
* @return Block at the represented location