Added ChunkPopulateEvent, new "newChunk" property on ChunkLoadEvent

This commit is contained in:
Dinnerbone
2011-06-16 19:32:14 +01:00
parent bacd83cb81
commit 6d51a64bc7
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() {