Java 类org.bukkit.event.vehicle.VehicleEvent 实例源码

项目:NucleusFramework    文件:BukkitEventForwarder.java   
public void on(Object e) {

            if (!(e instanceof Event))
                return;

            Event event = (Event) e;

            onEvent(event);

            if (event instanceof PlayerEvent) {
                onPlayerEvent((PlayerEvent)event);
            }
            else if (event instanceof BlockEvent) {
                onBlockEvent((BlockEvent)event);
            }
            else if (event instanceof HangingEvent) {
                onHangingEvent((HangingEvent)event);
            }
            else if (event instanceof InventoryEvent) {
                onInventoryEvent((InventoryEvent) event);
            }
            else if (event instanceof VehicleEvent) {
                onVehicleEvent((VehicleEvent) event);
            }
            else if (event instanceof EntityEvent) {
                onEntityEvent((EntityEvent) event);
            }
        }
项目:quick-game-framework    文件:ArenaBase.java   
@EventHandler(priority = EventPriority.MONITOR)
public void onVehicleEvent(VehicleEvent evt) {
    checkLocation(evt.getVehicle().getLocation(), evt);
}
项目:PV-Star    文件:ArenaEventForwarder.java   
@Override
protected void onVehicleEvent(VehicleEvent event) {
    callEvent(event.getVehicle(), event);
}
项目:NucleusFramework    文件:BukkitEventForwarder.java   
/**
 * Invoked whenever a registered vehicle event is called.
 *
 * <p>Intended for optional override.</p>
 *
 * @param event  The called event.
 */
protected void onVehicleEvent(VehicleEvent event) {}