Adds Location.getChunk()

This commit is contained in:
Kevin 2011-12-11 21:13:45 -08:00
parent 7f06f7ffa8
commit 022bae1198

View File

@ -63,6 +63,15 @@ public class Location implements Cloneable {
return world; 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 * Gets the block at the represented location
* *