Adds Location.getChunk()
This commit is contained in:
parent
7f06f7ffa8
commit
022bae1198
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user