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 |
canBeHovered() |
boolean |
canShift() |
boolean |
canTakeStack(net.minecraft.entity.player.EntityPlayer par1EntityPlayer) |
boolean |
isItemValid(net.minecraft.item.ItemStack itemstack) |
insert, onSlotChanged
decrStackSize, getItemHandler, getItemStackLimit, getSlotStackLimit, getStack, isSameInventory, onSlotChange, putStack
public SlotUntouchable(IItemHandlerAdv itemHandler, int slotIndex, int posX, int posY)
public boolean isItemValid(@Nonnull net.minecraft.item.ItemStack itemstack)
isItemValid
in class SlotBase
public boolean canTakeStack(net.minecraft.entity.player.EntityPlayer par1EntityPlayer)
canTakeStack
in class net.minecraftforge.items.SlotItemHandler
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 canBeHovered()
canBeHovered
in class net.minecraft.inventory.Slot