public class SlotItemHandler extends Slot
backgroundLocation, backgroundMap, backgroundName, inventory, slotNumber, xPos, yPos| 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) |
int |
getSlotStackLimit() |
ItemStack |
getStack() |
boolean |
isItemValid(ItemStack stack) |
void |
onSlotChange(ItemStack p_75220_1_,
ItemStack p_75220_2_) |
void |
putStack(ItemStack stack) |
getBackgroundLocation, getBackgroundMap, getBackgroundSprite, getHasStack, getSlotIndex, getSlotTexture, isEnabled, isHere, isSameInventory, onCrafting, onCrafting, onSlotChanged, onSwapCraft, onTake, setBackgroundLocation, setBackgroundNamepublic SlotItemHandler(IItemHandler itemHandler, int index, int xPosition, int yPosition)
public boolean isItemValid(@Nonnull
ItemStack stack)
isItemValid in class Slotpublic void onSlotChange(@Nonnull
ItemStack p_75220_1_,
@Nonnull
ItemStack p_75220_2_)
onSlotChange in class Slotpublic int getSlotStackLimit()
getSlotStackLimit in class Slotpublic int getItemStackLimit(@Nonnull
ItemStack stack)
getItemStackLimit in class Slotpublic boolean canTakeStack(EntityPlayer playerIn)
canTakeStack in class Slot@Nonnull public ItemStack decrStackSize(int amount)
decrStackSize in class Slotpublic IItemHandler getItemHandler()