geforkt von Mirrors/Paper
getLoadedChunks method
Dieser Commit ist enthalten in:
Ursprung
73f0347eb0
Commit
101d01ef64
@ -33,6 +33,19 @@ public class ChunkProviderServer implements IChunkProvider {
|
|||||||
this.c = ichunkprovider;
|
this.c = ichunkprovider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CraftBukkit start
|
||||||
|
public org.bukkit.Chunk[] getLoadedChunks() {
|
||||||
|
Object[] chunks = e.values().toArray();
|
||||||
|
org.bukkit.Chunk[] craftChunks = new CraftChunk[chunks.length];
|
||||||
|
|
||||||
|
for(int cnt =0;cnt<chunks.length;cnt++) {
|
||||||
|
craftChunks[cnt] = ((Chunk)chunks[cnt]).bukkitChunk;
|
||||||
|
}
|
||||||
|
|
||||||
|
return craftChunks;
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
|
|
||||||
public boolean a(int i, int j) {
|
public boolean a(int i, int j) {
|
||||||
ChunkCoordinates chunkcoordinates = new ChunkCoordinates(i, j);
|
ChunkCoordinates chunkcoordinates = new ChunkCoordinates(i, j);
|
||||||
|
|
||||||
|
@ -59,6 +59,10 @@ public class CraftWorld implements World {
|
|||||||
return world.A.a( x, z );
|
return world.A.a( x, z );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Chunk[] getLoadedChunks() {
|
||||||
|
return world.A.getLoadedChunks();
|
||||||
|
}
|
||||||
|
|
||||||
public void loadChunk(int x, int z) {
|
public void loadChunk(int x, int z) {
|
||||||
world.A.d(x, z);
|
world.A.d(x, z);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren