diff options
author | Kevin <kingersoll@gmail.com> | 2011-12-11 21:13:45 -0800 |
---|---|---|
committer | Kevin <kingersoll@gmail.com> | 2011-12-11 21:13:45 -0800 |
commit | 022bae1198bf243babdc8aac0f8b7e00d97e43e7 (patch) | |
tree | f6cd61dec3e2fdd90f080c5fc9a322ec94920595 | |
parent | 7f06f7ffa830bb31da279db3093bc82a5728eba4 (diff) | |
download | bukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.tar bukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.tar.gz bukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.tar.lz bukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.tar.xz bukkit-022bae1198bf243babdc8aac0f8b7e00d97e43e7.zip |
Adds Location.getChunk()
-rw-r--r-- | src/main/java/org/bukkit/Location.java | 9 |
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 |