Added Ability To Grab Chunk From world in Flocation

This commit is contained in:
Driftay 2018-09-26 22:38:51 -04:00
parent fb8837bd7d
commit 2afae3a93f
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,10 @@ public class FLocation implements Serializable {
return regionVal << 5; // "<< 5" == "* 32"
}
public Chunk getChunk(){
return Bukkit.getWorld(worldName).getChunkAt(x, z);
}
public static HashSet<FLocation> getArea(FLocation from, FLocation to) {
HashSet<FLocation> ret = new HashSet<>();