Package org.spoutcraft.client.packet

Examples of org.spoutcraft.client.packet.SpoutPacket


  public static void onTick() {
    synchronized(instance.decompressed) {
      Iterator<CompressablePacket> i = instance.decompressed.iterator();
      while (i.hasNext()) {
        SpoutPacket packet = i.next();
        try {
          SpoutClient.getHandle().mcProfiler.startSection(packet.getPacketType().name());
          packet.run(SpoutClient.getHandle().thePlayer.entityId);
          i.remove();
        } catch (Exception e) {
          System.out.println("------------------------");
          System.out.println("Unexpected Exception: " + packet.getPacketType());
          e.printStackTrace();
          System.out.println("------------------------");
        } finally {
          SpoutClient.getHandle().mcProfiler.endSection();
        }
View Full Code Here


    ScreenType display = ScreenUtil.getType(screen);

    if (notify && thePlayer != null && theWorld != null) {
      // Screen closed
      SpoutPacket packet = null;
      Screen widget = null;
      if (this.currentScreen != null && screen == null) {
        packet = new PacketScreenAction(ScreenAction.Close, ScreenUtil.getType(this.currentScreen));
        widget = currentScreen.getScreen();
      }
View Full Code Here

TOP

Related Classes of org.spoutcraft.client.packet.SpoutPacket

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.