From 101d01ef644c29da1393bdd325a910f7aa5cf097 Mon Sep 17 00:00:00 2001 From: Raphfrk Date: Fri, 4 Feb 2011 20:11:57 +0000 Subject: [PATCH] getLoadedChunks method --- .../net/minecraft/server/ChunkProviderServer.java | 13 +++++++++++++ .../java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java index abf5956af1..d0da9745e1 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