public class DisableableSlot
extends net.minecraft.inventory.container.Slot
| Constructor and Description |
|---|
DisableableSlot(net.minecraft.inventory.IInventory inventoryIn,
int index,
int xPosition,
int yPosition,
java.util.function.BooleanSupplier isDisabled) |
DisableableSlot(net.minecraft.inventory.IInventory inventoryIn,
int index,
int xPosition,
int yPosition,
IDisableableContainer disableableContainer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled() |
boolean |
isItemValid(net.minecraft.item.ItemStack stack) |
canTakeStack, decrStackSize, getBackground, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getStack, isSameInventory, onCrafting, onCrafting, onSlotChange, onSlotChanged, onSwapCraft, onTake, putStack, setBackgroundpublic DisableableSlot(net.minecraft.inventory.IInventory inventoryIn,
int index,
int xPosition,
int yPosition,
IDisableableContainer disableableContainer)
public DisableableSlot(net.minecraft.inventory.IInventory inventoryIn,
int index,
int xPosition,
int yPosition,
java.util.function.BooleanSupplier isDisabled)