public class SlotUntouchable extends SlotBase implements IPhantomSlot
handlerIndex, itemHandler| Constructor and Description |
|---|
SlotUntouchable(IItemHandlerAdv itemHandler,
int slotIndex,
int posX,
int posY) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAdjustCount() |
boolean |
canShift() |
boolean |
canTakeStack(net.minecraft.entity.player.EntityPlayer par1EntityPlayer) |
boolean |
isItemValid(net.minecraft.item.ItemStack itemstack) |
insert, onSlotChangeddecrStackSize, getItemHandler, getItemStackLimit, getSlotStackLimit, getStack, isSameInventory, onSlotChange, putStackpublic SlotUntouchable(IItemHandlerAdv itemHandler, int slotIndex, int posX, int posY)
public boolean isItemValid(@Nonnull
net.minecraft.item.ItemStack itemstack)
isItemValid in class SlotBasepublic boolean canTakeStack(net.minecraft.entity.player.EntityPlayer par1EntityPlayer)
canTakeStack in class net.minecraftforge.items.SlotItemHandlerpublic 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.