Added PlayerInteractEntityEvent which fires when a player right clicks an entity. Thanks fullwall!

By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
Bukkit/Spigot
2011-05-02 04:30:10 -04:00
parent 33d8037626
commit 03ff88b71d
4 changed files with 68 additions and 0 deletions

View File

@@ -280,6 +280,12 @@ public final class JavaPluginLoader implements PluginLoader {
((PlayerListener) listener).onPlayerInteract((PlayerInteractEvent) event);
}
};
case PLAYER_INTERACT_ENTITY:
return new EventExecutor() {
public void execute(Listener listener, Event event) {
((PlayerListener) listener).onPlayerInteractEntity((PlayerInteractEntityEvent) event);
}
};
case PLAYER_LOGIN:
return new EventExecutor() {
public void execute(Listener listener, Event event) {