Package org.getspout.spoutapi.event.screen

Examples of org.getspout.spoutapi.event.screen.ScreenOpenEvent


        if (!event.isCancelled()) {
          player.openScreen(ScreenType.GAME_SCREEN, false);
        }
        break;
      case Open:
        event = new ScreenOpenEvent(player, player.getMainScreen().getActivePopup(), ScreenType.getType(this.screen));
        Bukkit.getServer().getPluginManager().callEvent(event);
        if (event.isCancelled()) {
          PopupScreen screen = player.getMainScreen().getActivePopup();
          if (screen != null) {
            screen.setDirty(true);
View Full Code Here


  }

  @Override
  public boolean attachPopupScreen(PopupScreen screen) {
    if (getActivePopup() == null) {
      ScreenOpenEvent event = new ScreenOpenEvent(SpoutManager.getPlayerFromId(playerId), screen, ScreenType.CUSTOM_SCREEN);
      Bukkit.getServer().getPluginManager().callEvent(event);
      if (event.isCancelled()) {
        return false;
      }
      activePopup = screen;
      screen.setDirty(true);
      screen.setScreen(this);
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.event.screen.ScreenOpenEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.