13
0
geforkt von Mirrors/Paper

Added loadChunk, unloadChunk and unloadChunkRequest.

By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2011-02-08 14:26:55 +00:00
Ursprung c68ddf76c0
Commit 32ebb2e2e1

Datei anzeigen

@ -75,7 +75,31 @@ public class CraftWorld implements World {
}
public void loadChunk(int x, int z) {
world.A.d(x, z);
loadChunk(x, z, true);
}
public boolean loadChunk(int x, int z, boolean generate) {
return world.A.loadChunk(x, z, generate) != null;
}
public boolean unloadChunk(int x, int z) {
return unloadChunk(x, z, true);
}
public boolean unloadChunk(int x, int z, boolean save) {
return unloadChunk(x, z, save, false);
}
public boolean unloadChunk(int x, int z, boolean save, boolean safe) {
return world.A.unloadChunk(x, z, save, safe);
}
public boolean unloadChunkRequest(int x, int z) {
return unloadChunkRequest(x, z, true);
}
public boolean unloadChunkRequest(int x, int z, boolean safe) {
return world.A.unloadChunkRequest(x, z, safe);
}
public boolean isChunkLoaded(Chunk chunk) {