Interface for BlockBreakEvent

By: Meaglin <meaglin.wasabi@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-02-01 18:07:16 +01:00
parent c818125fb8
commit d7d0c66b75
4 changed files with 59 additions and 1 deletions

View File

@@ -235,12 +235,16 @@ public final class JavaPluginLoader implements PluginLoader {
((BlockListener)listener).onBlockRedstoneChange( (BlockFromToEvent)event );
}
};
case BLOCK_BURN:
return new EventExecutor() { public void execute( Listener listener, Event event ) {
((BlockListener)listener).onBlockBurn( (BlockBurnEvent)event );
}
};
case BLOCK_BREAK:
return new EventExecutor() { public void execute( Listener listener, Event event ) {
((BlockListener)listener).onBlockBreak( (BlockBreakEvent)event );
}
};
// Server Events
case PLUGIN_ENABLE: