public class POBox
extends net.minecraft.world.storage.WorldSavedData
implements net.minecraft.inventory.IInventory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SAVE_NAME |
static short |
SLOT_SIZE |
| Constructor and Description |
|---|
POBox(IMailAddress address) |
POBox(java.lang.String savename) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
closeInventory(net.minecraft.entity.player.EntityPlayer var1) |
net.minecraft.item.ItemStack |
decrStackSize(int var1,
int var2) |
net.minecraft.util.text.ITextComponent |
getDisplayName() |
int |
getField(int id) |
int |
getFieldCount() |
int |
getInventoryStackLimit() |
java.lang.String |
getName() |
POBoxInfo |
getPOBoxInfo() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int var1) |
boolean |
hasCustomName() |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int i,
net.minecraft.item.ItemStack itemstack) |
boolean |
isUsableByPlayer(net.minecraft.entity.player.EntityPlayer var1) |
void |
markDirty() |
void |
openInventory(net.minecraft.entity.player.EntityPlayer var1) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
net.minecraft.item.ItemStack |
removeStackFromSlot(int index) |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int var1,
net.minecraft.item.ItemStack var2) |
boolean |
storeLetter(net.minecraft.item.ItemStack letterstack) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
public static final java.lang.String SAVE_NAME
public static final short SLOT_SIZE
public POBox(IMailAddress address)
public POBox(java.lang.String savename)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in class net.minecraft.world.storage.WorldSavedDatapublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in class net.minecraft.world.storage.WorldSavedDatapublic boolean storeLetter(net.minecraft.item.ItemStack letterstack)
public POBoxInfo getPOBoxInfo()
public boolean isEmpty()
isEmpty in interface net.minecraft.inventory.IInventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.IInventorymarkDirty in class net.minecraft.world.storage.WorldSavedDatapublic void setInventorySlotContents(int var1,
net.minecraft.item.ItemStack var2)
setInventorySlotContents 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 java.lang.String getName()
getName in interface net.minecraft.world.IWorldNameablepublic int getInventoryStackLimit()
getInventoryStackLimit 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 net.minecraft.util.text.ITextComponent getDisplayName()
getDisplayName in interface net.minecraft.world.IWorldNameablepublic 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.IInventory