public class SlotPhantom extends SlotBase implements IPhantomSlot
handlerIndex, itemHandler
Constructor and Description |
---|
SlotPhantom(IItemHandlerAdv itemHandler,
int slotIndex,
int posX,
int posY) |
SlotPhantom(IItemHandlerAdv itemHandler,
int slotIndex,
int posX,
int posY,
boolean adjustableCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAdjustCount() |
boolean |
canTakeStack(net.minecraft.entity.player.EntityPlayer par1EntityPlayer) |
int |
getSlotStackLimit() |
boolean |
isItemValid(net.minecraft.item.ItemStack stack) |
canShift, insert, onSlotChanged
decrStackSize, getItemHandler, getItemStackLimit, getStack, isSameInventory, onSlotChange, putStack
public SlotPhantom(IItemHandlerAdv itemHandler, int slotIndex, int posX, int posY, boolean adjustableCount)
public SlotPhantom(IItemHandlerAdv itemHandler, int slotIndex, int posX, int posY)
public boolean canAdjustCount()
canAdjustCount
in interface IPhantomSlot
ItemStack.setCount(int)
to a count other than 0 (empty) or 1
(filled), false to limit this slot to only empty or have a count of 1.public boolean canTakeStack(net.minecraft.entity.player.EntityPlayer par1EntityPlayer)
canTakeStack
in class net.minecraftforge.items.SlotItemHandler
public boolean isItemValid(@Nonnull net.minecraft.item.ItemStack stack)
isItemValid
in class SlotBase
public int getSlotStackLimit()
getSlotStackLimit
in class net.minecraftforge.items.SlotItemHandler