mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Added ChunkPopulateEvent, new "newChunk" property on ChunkLoadEvent
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user