mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
62 lines
1.3 KiB
Java
62 lines
1.3 KiB
Java
/*******************************************************************************
|
|
* 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<ItemStack> 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<String> list);
|
|
|
|
boolean isPostPaid();
|
|
|
|
int requiredPostage();
|
|
|
|
void invalidatePostage();
|
|
|
|
NonNullList<ItemStack> getAttachments();
|
|
|
|
void addAttachment(ItemStack itemstack);
|
|
|
|
void addAttachments(NonNullList<ItemStack> itemstacks);
|
|
|
|
int countAttachments();
|
|
|
|
void addStamps(ItemStack stamps);
|
|
|
|
}
|