public class ItemInventoryLetter extends ItemInventory implements IErrorSource
player| Constructor and Description |
|---|
ItemInventoryLetter(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack itemstack) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSlotAccept(int slotIndex,
net.minecraft.item.ItemStack itemStack)
Non-automation version of IInventory's isItemValidForSlot.
|
net.minecraft.item.ItemStack |
decrStackSize(int index,
int count) |
com.google.common.collect.ImmutableSet<IErrorState> |
getErrorStates() |
int |
getInventoryStackLimit() |
ILetter |
getLetter() |
java.lang.String |
getName() |
int |
getSizeInventory() |
net.minecraft.item.ItemStack |
getStackInSlot(int i) |
boolean |
isUsableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer) |
void |
onLetterClosed() |
void |
onLetterOpened() |
net.minecraft.item.ItemStack |
removeStackFromSlot(int slot) |
void |
setInventorySlotContents(int index,
net.minecraft.item.ItemStack itemstack) |
clear, closeInventory, getCapability, getDisplayName, getField, getFieldCount, getHand, getItemHandler, getOccupiedSlotCount, getParent, hasCapability, hasCustomName, isEmpty, isItemValidForSlot, isLocked, isParentItemInventory, markDirty, onSlotClick, onWriteNBT, openInventory, setFieldpublic ItemInventoryLetter(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack itemstack)
public ILetter getLetter()
public void onLetterClosed()
public void onLetterOpened()
public net.minecraft.item.ItemStack decrStackSize(int index,
int count)
decrStackSize in interface net.minecraft.inventory.IInventorydecrStackSize in class ItemInventorypublic void setInventorySlotContents(int index,
net.minecraft.item.ItemStack itemstack)
setInventorySlotContents in interface net.minecraft.inventory.IInventorysetInventorySlotContents in class ItemInventorypublic net.minecraft.item.ItemStack getStackInSlot(int i)
getStackInSlot in interface net.minecraft.inventory.IInventorygetStackInSlot in class ItemInventorypublic int getSizeInventory()
getSizeInventory in interface net.minecraft.inventory.IInventorygetSizeInventory in class ItemInventorypublic java.lang.String getName()
getName in interface net.minecraft.world.IWorldNameablegetName in class ItemInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface net.minecraft.inventory.IInventorygetInventoryStackLimit in class ItemInventorypublic boolean isUsableByPlayer(net.minecraft.entity.player.EntityPlayer entityplayer)
isUsableByPlayer in interface net.minecraft.inventory.IInventoryisUsableByPlayer in class ItemInventorypublic net.minecraft.item.ItemStack removeStackFromSlot(int slot)
removeStackFromSlot in interface net.minecraft.inventory.IInventoryremoveStackFromSlot in class ItemInventorypublic boolean canSlotAccept(int slotIndex,
net.minecraft.item.ItemStack itemStack)
IFilterSlotDelegateCombine this with Forestry's access permissions to implement isItemValidForSlot.
canSlotAccept in interface IFilterSlotDelegatecanSlotAccept in class ItemInventorypublic com.google.common.collect.ImmutableSet<IErrorState> getErrorStates()
getErrorStates in interface IErrorSource