Examples of deliverLetter()


Examples of forestry.api.mail.IPostalCarrier.deliverLetter()

    IPostalState state = EnumDeliveryState.NOT_MAILABLE;
    for (IMailAddress address : letter.getRecipients()) {
      IPostalCarrier carrier = PostManager.postRegistry.getCarrier(address.getType());
      if (carrier == null)
        continue;
      state = carrier.deliverLetter(world, this, address, itemstack, doLodge);
      if (!state.isOk())
        break;
    }

    if (!state.isOk())
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.