| Modifier and Type | Field and Description |
|---|---|
protected int |
slot |
| Constructor and Description |
|---|
InvSlot(net.minecraftforge.items.IItemHandler inv,
int slot) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPutStackInSlot(net.minecraft.item.ItemStack stack) |
boolean |
canTakeStackFromSlot(net.minecraft.item.ItemStack stack) |
net.minecraft.item.ItemStack |
decreaseStackInSlot() |
int |
getIndex() |
net.minecraft.item.ItemStack |
getStackInSlot()
It is not legal to edit the stack returned from this function.
|
public boolean canPutStackInSlot(net.minecraft.item.ItemStack stack)
canPutStackInSlot in interface IInvSlotpublic boolean canTakeStackFromSlot(net.minecraft.item.ItemStack stack)
canTakeStackFromSlot in interface IInvSlotpublic net.minecraft.item.ItemStack decreaseStackInSlot()
decreaseStackInSlot in interface IInvSlotpublic net.minecraft.item.ItemStack getStackInSlot()
IInvSlotgetStackInSlot in interface IInvSlot