From 602f06a91396fdbb2609279c9e96d8e682c24b33 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 11 Dec 2011 21:13:45 -0800 Subject: [PATCH] Adds Location.getChunk() By: Kevin --- paper-api/src/main/java/org/bukkit/Location.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Location.java b/paper-api/src/main/java/org/bukkit/Location.java index 70a3f1eac..6ee1852e7 100644 --- a/paper-api/src/main/java/org/bukkit/Location.java +++ b/paper-api/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 *