Compare commits
No commits in common. "ecc9932f5e379167288446b9793fac390f711f39" and "77b0a0c73ccbef26c3b77f8f87ab512a1bba18e0" have entirely different histories.
ecc9932f5e
...
77b0a0c73c
@ -3,8 +3,6 @@ package fr.pandacube.lib.paper.world;
|
|||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
|
|
||||||
import java.util.concurrent.CompletableFuture;
|
|
||||||
|
|
||||||
public record ChunkCoord(int x, int z) {
|
public record ChunkCoord(int x, int z) {
|
||||||
|
|
||||||
public ChunkCoord(Chunk c) {
|
public ChunkCoord(Chunk c) {
|
||||||
@ -23,16 +21,4 @@ public record ChunkCoord(int x, int z) {
|
|||||||
public Chunk getChunk(World w) {
|
public Chunk getChunk(World w) {
|
||||||
return w.getChunkAt(x, z);
|
return w.getChunkAt(x, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Chunk getChunk(World w, boolean generate) {
|
|
||||||
return w.getChunkAt(x, z, generate);
|
|
||||||
}
|
|
||||||
|
|
||||||
public CompletableFuture<Chunk> getChunkAsync(World w) {
|
|
||||||
return w.getChunkAtAsync(x, z);
|
|
||||||
}
|
|
||||||
|
|
||||||
public CompletableFuture<Chunk> getChunkAsync(World w, boolean generate) {
|
|
||||||
return w.getChunkAtAsync(x, z, generate);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ public class WorldUtil {
|
|||||||
throw new IllegalStateException("Unable to determine the type of the world " + world + ".");
|
throw new IllegalStateException("Unable to determine the type of the world " + world + ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<RegionCoord> getExistingRegions(String world) {
|
public List<RegionCoord> getExistingRegions(String world) {
|
||||||
Environment env = determineEnvironment(world);
|
Environment env = determineEnvironment(world);
|
||||||
|
|
||||||
File worldFolder = worldDir(world);
|
File worldFolder = worldDir(world);
|
||||||
|
Loading…
Reference in New Issue
Block a user