Package forestry.mail.network

Examples of forestry.mail.network.PacketPOBoxInfo


  }

  public void setPOBoxInfo(World world, IMailAddress address, POBoxInfo info) {
    EntityPlayer player = Proxies.common.getPlayer(world, address.getPlayerProfile());
    if (player != null)
      Proxies.net.sendToPlayer(new PacketPOBoxInfo(PacketIds.POBOX_INFO, info), player);
  }
View Full Code Here


        PacketLetterInfo packetT = new PacketLetterInfo();
        packetT.readData(data);
        onLetterInfo(packetT);
        break;
      case PacketIds.POBOX_INFO:
        PacketPOBoxInfo packetP = new PacketPOBoxInfo();
        packetP.readData(data);
        onPOBoxInfo(packetP);
        break;
      case PacketIds.LETTER_RECIPIENT:
        packet = new PacketUpdate();
        packet.readData(data);
View Full Code Here

    MailAddress address = new MailAddress(player.getGameProfile());
    POBox pobox = PostRegistry.getPOBox(player.worldObj, address);
    if (pobox == null)
      return;

    Proxies.net.sendToPlayer(new PacketPOBoxInfo(PacketIds.POBOX_INFO, pobox.getPOBoxInfo()), player);
  }
View Full Code Here

TOP

Related Classes of forestry.mail.network.PacketPOBoxInfo

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.