Examples of invalidatePostage()


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

  public boolean storeLetter(ItemStack letterstack) {
    ILetter letter = PostManager.postRegistry.getLetter(letterstack);

    // Mark letter as processed
    letter.setProcessed(true);
    letter.invalidatePostage();
    NBTTagCompound nbttagcompound = new NBTTagCompound();
    letter.writeToNBT(nbttagcompound);
    letterstack.setTagCompound(nbttagcompound);

    this.markDirty();
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.