public class SlotRepairable
extends net.minecraft.inventory.Slot
| Constructor and Description |
|---|
SlotRepairable(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIsItemValid(net.minecraft.item.ItemStack itemStack)
Check if the given item is valid for this slot type.
|
boolean |
isItemValid(net.minecraft.item.ItemStack itemStack) |
canTakeStack, decrStackSize, getBackgroundLocation, getBackgroundMap, getBackgroundSprite, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getSlotTexture, getStack, isEnabled, isHere, isSameInventory, onCrafting, onCrafting, onSlotChange, onSlotChanged, onSwapCraft, onTake, putStack, setBackgroundLocation, setBackgroundNamepublic SlotRepairable(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y)
inventory - The inventory this slot will be in.index - The index of this slot.x - X coordinate.y - Y coordinate.public boolean isItemValid(net.minecraft.item.ItemStack itemStack)
isItemValid in class net.minecraft.inventory.Slotpublic static boolean checkIsItemValid(net.minecraft.item.ItemStack itemStack)
itemStack - The item that will be checked.