Package forestry.api.mail

Examples of forestry.api.mail.EnumAddressee


  public void handleSetRecipient(EntityPlayer player, PacketUpdate packet) {
    String recipientName = packet.payload.stringPayload[0];
    String typeName = packet.payload.stringPayload[1];

    EnumAddressee type = EnumAddressee.fromString(typeName);
    IMailAddress recipient;
    if (type == EnumAddressee.PLAYER) {
      GameProfile gameProfile = MinecraftServer.getServer().func_152358_ax().func_152655_a(recipientName);
      if (gameProfile == null)
        gameProfile = new GameProfile(new UUID(0, 0), recipientName);
View Full Code Here


    // Check for focus changes
    if (addressFocus != address.isFocused()) {
      String recipient = this.address.getText();
      if (StringUtils.isNotBlank(recipient)) {
        EnumAddressee recipientType = container.getCarrierType();
        setRecipient(recipient, recipientType);
      }
    }
    addressFocus = address.isFocused();
    if (textFocus != text.isFocused())
View Full Code Here

  }

  @Override
  public void onGuiClosed() {
    String recipientName = this.address.getText();
    EnumAddressee recipientType = container.getCarrierType();
    setRecipient(recipientName, recipientType);
    setText();
    Keyboard.enableRepeatEvents(false);
    super.onGuiClosed();
  }
View Full Code Here

    String typeName = SessionVars.getStringVar("mail.letter.addressee");
   
    if (StringUtils.isNotBlank(recipient) && StringUtils.isNotBlank(typeName)) {
      address.setText(recipient);

      EnumAddressee type = EnumAddressee.fromString(typeName);
      setRecipient(recipient, type);
    }

    SessionVars.clearStringVar("mail.letter.recipient");
    SessionVars.clearStringVar("mail.letter.addressee");
View Full Code Here

TOP

Related Classes of forestry.api.mail.EnumAddressee

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.