Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
Added Ability To Grab Chunk From world in Flocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Driftay committed Sep 27, 2018
1 parent fb8837b commit 2afae3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/massivecraft/factions/FLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public static int regionToChunk(int regionVal) {
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<>();

Expand Down

0 comments on commit 2afae3a

Please sign in to comment.