Package org.getspout.spoutapi.player

Examples of org.getspout.spoutapi.player.SpoutPlayer.openScreen()


          handleScreenCloseCancelled(player, (ScreenCloseEvent) event, true);
        } else if (ScreenType.getType(this.screen) == ScreenType.CUSTOM_SCREEN) {
          handleScreenClose(player, (ScreenCloseEvent) event, true);
        }
        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);
View Full Code Here


          if (screen != null) {
            screen.setDirty(true);
            player.sendImmediatePacket(new PacketWidget(screen, screen.getId()));
          }
        } else {
          player.openScreen(ScreenType.getType(this.screen), false);
        }
        break;
    }
  }
View Full Code Here

    if (event.isCancelled()) {
      return false;
    }
    player.sendImmediatePacket(new PacketScreenAction(ScreenAction.Close, ScreenType.CUSTOM_SCREEN));
    activePopup = null;
    player.openScreen(ScreenType.GAME_SCREEN, false);
    return true;
  }

  @Override
  public HealthBar getHealthBar() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.