public interface SidedInventory extends Inventory
Modifier and Type | Method and Description |
---|---|
boolean |
canExtract(int slot,
ItemStack stack,
Direction dir)
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.
|
boolean |
canInsert(int slot,
ItemStack stack,
Direction dir)
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.
|
int[] |
getAvailableSlots(Direction side)
Gets the available slot positions that are reachable from a given side.
|
canPlayerUse, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack, size
int[] getAvailableSlots(Direction side)
boolean canInsert(int slot, ItemStack stack, @Nullable Direction dir)