public class Letter extends java.lang.Object implements ILetter
| Modifier and Type | Field and Description |
|---|---|
static short |
SLOT_ATTACHMENT_1 |
static short |
SLOT_ATTACHMENT_COUNT |
static short |
SLOT_POSTAGE_1 |
static short |
SLOT_POSTAGE_COUNT |
| Constructor and Description |
|---|
Letter(IMailAddress sender,
IMailAddress recipient) |
Letter(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(net.minecraft.item.ItemStack itemstack) |
void |
addAttachments(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> itemstacks) |
void |
addStamps(net.minecraft.item.ItemStack stamps) |
void |
addTooltip(java.util.List<java.lang.String> list) |
void |
clear() |
void |
closeInventory(net.minecraft.entity.player.EntityPlayer var1) |
int |
countAttachments() |
net.minecraft.item.ItemStack |
decrStackSize(int var1,
int var2) |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getAttachments() |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
int |
getField(int id) |
int |
getFieldCount() |
int |
getInventoryStackLimit() |
java.lang.String |
getName() |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getPostage() |
IMailAddress |
getRecipient() |
java.lang.String |
getRecipientString() |
IMailAddress |
getSender() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int var1) |
java.lang.String |
getText() |
boolean |
hasCustomName() |
boolean |
hasRecipient() |
void |
invalidatePostage() |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemstack) |
boolean |
isMailable() |
boolean |
isPostPaid() |
boolean |
isProcessed() |
boolean |
isUsableByPlayer(net.minecraft.entity.player.EntityPlayer var1) |
void |
markDirty() |
void |
openInventory(net.minecraft.entity.player.EntityPlayer var1) |
net.minecraft.item.ItemStack |
removeStackFromSlot(int index) |
int |
requiredPostage() |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int var1,
net.minecraft.item.ItemStack var2) |
void |
setProcessed(boolean flag) |
void |
setRecipient(IMailAddress address) |
void |
setSender(IMailAddress address) |
void |
setText(java.lang.String text) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
public static final short SLOT_ATTACHMENT_1
public static final short SLOT_ATTACHMENT_COUNT
public static final short SLOT_POSTAGE_1
public static final short SLOT_POSTAGE_COUNT
public Letter(IMailAddress sender, IMailAddress recipient)
public Letter(net.minecraft.nbt.NBTTagCompound nbttagcompound)
public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in interface INbtWritablepublic net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getPostage()
getPostage in interface ILetterpublic net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getAttachments()
getAttachments in interface ILetterpublic int countAttachments()
countAttachments in interface ILetterpublic void addAttachment(net.minecraft.item.ItemStack itemstack)
addAttachment in interface ILetterpublic void addAttachments(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> itemstacks)
addAttachments in interface ILetterpublic void invalidatePostage()
invalidatePostage in interface ILetterpublic void setProcessed(boolean flag)
setProcessed in interface ILetterpublic boolean isProcessed()
isProcessed in interface ILetterpublic boolean isMailable()
isMailable in interface ILetterpublic boolean isPostPaid()
isPostPaid in interface ILetterpublic int requiredPostage()
requiredPostage in interface ILetterpublic void addStamps(net.minecraft.item.ItemStack stamps)
public boolean hasRecipient()
hasRecipient in interface ILetterpublic void setSender(IMailAddress address)
public IMailAddress getSender()
public void setRecipient(@Nullable
IMailAddress address)
setRecipient in interface ILetter@Nullable public IMailAddress getRecipient()
getRecipient in interface ILetterpublic java.lang.String getRecipientString()
getRecipientString in interface ILetterpublic void addTooltip(java.util.List<java.lang.String> list)
addTooltip in interface ILetterpublic boolean isEmpty()
isEmpty in interface net.minecraft.inventory.IInventorypublic int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack getStackInSlot(int var1)
getStackInSlot in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack decrStackSize(int var1,
int var2)
decrStackSize in interface net.minecraft.inventory.IInventorypublic net.minecraft.item.ItemStack removeStackFromSlot(int index)
removeStackFromSlot in interface net.minecraft.inventory.IInventorypublic void setInventorySlotContents(int var1,
net.minecraft.item.ItemStack var2)
setInventorySlotContents in interface net.minecraft.inventory.IInventorypublic java.lang.String getName()
getName in interface net.minecraft.world.IWorldNameablepublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.IInventorypublic boolean isUsableByPlayer(net.minecraft.entity.player.EntityPlayer var1)
isUsableByPlayer in interface net.minecraft.inventory.IInventorypublic void openInventory(net.minecraft.entity.player.EntityPlayer var1)
openInventory in interface net.minecraft.inventory.IInventorypublic void closeInventory(net.minecraft.entity.player.EntityPlayer var1)
closeInventory in interface net.minecraft.inventory.IInventorypublic boolean hasCustomName()
hasCustomName in interface net.minecraft.world.IWorldNameablepublic boolean isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemstack)
isItemValidForSlot in interface net.minecraft.inventory.IInventorypublic int getField(int id)
getField in interface net.minecraft.inventory.IInventorypublic void setField(int id,
int value)
setField in interface net.minecraft.inventory.IInventorypublic int getFieldCount()
getFieldCount in interface net.minecraft.inventory.IInventorypublic void clear()
clear in interface net.minecraft.inventory.IInventorypublic net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName in interface net.minecraft.world.IWorldNameable