Package forestry.api.mail

Examples of forestry.api.mail.ILetter.addAttachment()


    // Prepare the letter
    ILetter mail = new Letter(this.address, letter.getSender());
    mail.setText("Please find your order attached.");
    for (int i = 0; i < ordersToFill; i++) {
      mail.addAttachment(inventory.getStackInSlot(SLOT_TRADEGOOD).copy());
    }
    mail.addAttachments(getSurplusAttachments(ordersToFill, letter.getAttachments()));

    // Check for necessary postage
    int requiredPostage = mail.requiredPostage();
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.