Added BlockSpread, BlockForm and BlockFade events.

By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
Bukkit/Spigot
2011-06-17 14:46:01 -04:00
parent 5d515f5a85
commit c3373081e2
6 changed files with 193 additions and 1 deletions

View File

@@ -490,6 +490,28 @@ public final class JavaPluginLoader implements PluginLoader {
}
};
case BLOCK_FORM:
return new EventExecutor() {
public void execute(Listener listener, Event event) {
((BlockListener) listener).onBlockForm((BlockFormEvent) event);
}
};
case BLOCK_SPREAD:
return new EventExecutor() {
public void execute(Listener listener, Event event) {
((BlockListener) listener).onBlockSpread((BlockSpreadEvent) event);
}
};
case BLOCK_FADE:
return new EventExecutor() {
public void execute(Listener listener, Event event) {
((BlockListener) listener).onBlockFade((BlockFadeEvent) event);
}
};
case BLOCK_DISPENSE:
return new EventExecutor() {
public void execute(Listener listener, Event event) {
@@ -526,7 +548,7 @@ public final class JavaPluginLoader implements PluginLoader {
((WorldListener) listener).onChunkLoad((ChunkLoadEvent) event);
}
};
case CHUNK_POPULATED:
return new EventExecutor() {
public void execute(Listener listener, Event event) {