diff options
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/ChunkProviderServer.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java index abf5956a..d0da9745 100644 --- a/src/main/java/net/minecraft/server/ChunkProviderServer.java +++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java @@ -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); |