mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:16:06 +01:00
Adds Location.getChunk()
By: Kevin <kingersoll@gmail.com>
This commit is contained in:
parent
c98c245890
commit
602f06a913
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue