mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Added loadChunk, unloadChunk and unloadChunkRequest.
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
c68ddf76c0
commit
32ebb2e2e1
@ -75,7 +75,31 @@ public class CraftWorld implements World {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void loadChunk(int x, int z) {
|
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) {
|
public boolean isChunkLoaded(Chunk chunk) {
|
||||||
|
Loading…
Reference in New Issue
Block a user