Adds Location.getChunk()

By: Kevin <kingersoll@gmail.com>
This commit is contained in:
Bukkit/Spigot 2011-12-11 21:13:45 -08:00
parent c98c245890
commit 602f06a913

View file

@ -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
*