public class Slot
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
slotNumber |
int |
xDisplayPosition |
int |
yDisplayPosition |
Constructor and Description |
---|
Slot(IInventory iinventory,
int i,
int j,
int k) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
decrStackSize(int i) |
int |
getBackgroundIconIndex() |
boolean |
getHasStack() |
int |
getSlotStackLimit() |
ItemStack |
getStack() |
boolean |
isItemValid(ItemStack itemstack) |
void |
onPickupFromSlot(ItemStack itemstack) |
void |
onSlotChanged() |
void |
putStack(ItemStack itemstack) |
public int slotNumber
public int xDisplayPosition
public int yDisplayPosition
public Slot(IInventory iinventory, int i, int j, int k)
public void onPickupFromSlot(ItemStack itemstack)
public boolean isItemValid(ItemStack itemstack)
public ItemStack getStack()
public boolean getHasStack()
public void putStack(ItemStack itemstack)
public void onSlotChanged()
public int getSlotStackLimit()
public int getBackgroundIconIndex()
public ItemStack decrStackSize(int i)