mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Adds Location.getChunk()
This commit is contained in:
parent
7f06f7ffa8
commit
022bae1198
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