/******************************************************************************* * Copyright 2011-2014 SirSengir * * This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details. ******************************************************************************/ package forestry.api.mail; import javax.annotation.Nullable; import java.util.List; import forestry.api.core.INbtWritable; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.util.NonNullList; public interface ILetter extends IInventory, INbtWritable { NonNullList getPostage(); void setProcessed(boolean flag); boolean isProcessed(); boolean isMailable(); void setSender(IMailAddress address); IMailAddress getSender(); boolean hasRecipient(); void setRecipient(@Nullable IMailAddress address); @Nullable IMailAddress getRecipient(); String getRecipientString(); void setText(String text); String getText(); void addTooltip(List list); boolean isPostPaid(); int requiredPostage(); void invalidatePostage(); NonNullList getAttachments(); void addAttachment(ItemStack itemstack); void addAttachments(NonNullList itemstacks); int countAttachments(); void addStamps(ItemStack stamps); }