Added ChunkPopulateEvent, new "newChunk" property on ChunkLoadEvent

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-06-16 19:32:14 +01:00
parent caf78a759e
commit ae44a5e666
5 changed files with 51 additions and 4 deletions

View File

@@ -526,6 +526,13 @@ public final class JavaPluginLoader implements PluginLoader {
((WorldListener) listener).onChunkLoad((ChunkLoadEvent) event);
}
};
case CHUNK_POPULATED:
return new EventExecutor() {
public void execute(Listener listener, Event event) {
((WorldListener) listener).onChunkPopulate((ChunkPopulateEvent) event);
}
};
case CHUNK_UNLOAD:
return new EventExecutor() {