summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
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