getLoadedChunks method
Dieser Commit ist enthalten in:
Ursprung
73f0347eb0
Commit
101d01ef64
@ -33,6 +33,19 @@ public class ChunkProviderServer implements 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) {
|
||||
ChunkCoordinates chunkcoordinates = new ChunkCoordinates(i, j);
|
||||
|
||||
|
@ -59,6 +59,10 @@ public class CraftWorld implements World {
|
||||
return world.A.a( x, z );
|
||||
}
|
||||
|
||||
public Chunk[] getLoadedChunks() {
|
||||
return world.A.getLoadedChunks();
|
||||
}
|
||||
|
||||
public void loadChunk(int x, int z) {
|
||||
world.A.d(x, z);
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren