public class SlotSingleItem
extends net.minecraft.inventory.Slot
| Constructor and Description |
|---|
SlotSingleItem(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y,
net.minecraft.item.Item item)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isItemValid(net.minecraft.item.ItemStack itemStack) |
canTakeStack, decrStackSize, func_111238_b, getBackgroundIconIndex, getBackgroundIconTexture, getHasStack, getSlotIndex, getSlotStackLimit, getStack, isSlotInInventory, onCrafting, onCrafting, onPickupFromSlot, onSlotChange, onSlotChanged, putStack, setBackgroundIcon, setBackgroundIconTexturepublic SlotSingleItem(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y,
net.minecraft.item.Item item)
inventory - The inventory this slot will be in.index - The index of this slot.x - X coordinate.y - Y coordinate.item - The item to accept.