Java 类org.bukkit.event.hanging.HangingEvent 实例源码

项目: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);
            }
        }
项目:MundoSK    文件:ExprHangedEntity.java   
@Override
protected Entity[] get(Event event) {
    return new Entity[]{((HangingEvent) event).getEntity()};
}
项目:quick-game-framework    文件:ArenaBase.java   
@EventHandler(priority = EventPriority.MONITOR)
public void onHangingEvent(HangingEvent evt) {
    checkLocation(evt.getEntity().getLocation(), evt);
}
项目:PV-Star    文件:ArenaEventForwarder.java   
@Override
protected void onHangingEvent(HangingEvent event) {

}
项目:NucleusFramework    文件:BukkitEventForwarder.java   
/**
 * Invoked whenever a registered hanging event is called.
 *
 * <p>Intended for optional override.</p>
 *
 * @param event  The called event.
 */
protected void onHangingEvent(HangingEvent event) {}