From 022bae1198bf243babdc8aac0f8b7e00d97e43e7 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 11 Dec 2011 21:13:45 -0800 Subject: Adds Location.getChunk() --- src/main/java/org/bukkit/Location.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 @@ -63,6 +63,15 @@ public class Location implements Cloneable { return world; } + /** + * 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 * -- cgit v1.2.3