public class SlotDisabled
extends net.minecraft.inventory.Slot
| Constructor and Description |
|---|
SlotDisabled(net.minecraft.inventory.IInventory inventory,
int index,
int posX,
int posY)
Creates an inventory slot that is completely disabled.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTakeStack(net.minecraft.entity.player.EntityPlayer outStack) |
boolean |
isItemValid(net.minecraft.item.ItemStack inStack) |
decrStackSize, func_111238_b, getBackgroundIconIndex, getBackgroundIconTexture, getHasStack, getSlotIndex, getSlotStackLimit, getStack, isSlotInInventory, onCrafting, onCrafting, onPickupFromSlot, onSlotChange, onSlotChanged, putStack, setBackgroundIcon, setBackgroundIconTexturepublic SlotDisabled(net.minecraft.inventory.IInventory inventory,
int index,
int posX,
int posY)
inventory: - The inventory that this slot is a part of.index: - The index of this slot within the inventory.posX: - The X position of this slot within the inventory screen.posY: - The Y position of this slot within the inventory screen.public boolean isItemValid(net.minecraft.item.ItemStack inStack)
isItemValid in class net.minecraft.inventory.Slotpublic boolean canTakeStack(net.minecraft.entity.player.EntityPlayer outStack)
canTakeStack in class net.minecraft.inventory.Slot