public class SlotItemHandler extends Slot
backgroundLocation, backgroundMap, backgroundName, inventory, slotNumber, xDisplayPosition, yDisplayPosition
Constructor and Description |
---|
SlotItemHandler(IItemHandler itemHandler,
int index,
int xPosition,
int yPosition) |
Modifier and Type | Method and Description |
---|---|
boolean |
canTakeStack(EntityPlayer playerIn) |
ItemStack |
decrStackSize(int amount) |
IItemHandler |
getItemHandler() |
int |
getItemStackLimit(ItemStack stack) |
ItemStack |
getStack() |
boolean |
isItemValid(ItemStack stack) |
void |
onSlotChange(ItemStack p_75220_1_,
ItemStack p_75220_2_) |
void |
putStack(ItemStack stack) |
canBeHovered, getBackgroundLocation, getBackgroundMap, getBackgroundSprite, getHasStack, getSlotIndex, getSlotStackLimit, getSlotTexture, isHere, onCrafting, onCrafting, onPickupFromSlot, onSlotChanged, setBackgroundLocation, setBackgroundName
public SlotItemHandler(IItemHandler itemHandler, int index, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
isItemValid
in class Slot
public void onSlotChange(ItemStack p_75220_1_, ItemStack p_75220_2_)
onSlotChange
in class Slot
public int getItemStackLimit(ItemStack stack)
getItemStackLimit
in class Slot
public boolean canTakeStack(EntityPlayer playerIn)
canTakeStack
in class Slot
public ItemStack decrStackSize(int amount)
decrStackSize
in class Slot
public IItemHandler getItemHandler()