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, onSlotChangeddecrStackSize, getItemHandler, getItemStackLimit, getStack, isSameInventory, onSlotChange, putStackpublic 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 IPhantomSlotItemStack.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.SlotItemHandlerpublic boolean isItemValid(@Nonnull
net.minecraft.item.ItemStack stack)
isItemValid in class SlotBasepublic int getSlotStackLimit()
getSlotStackLimit in class net.minecraftforge.items.SlotItemHandler