Slot.Type
Inventory.Builder
Modifier and Type | Method and Description |
---|---|
boolean |
canAccept(ItemStack stack,
Direction from)
Gets whether this slot can accept the specified item from the specified
direction.
|
boolean |
canGet(ItemStack stack,
Direction from)
Gets whether automation can extract the specified item from the specified
direction.
|
boolean |
offer(ItemStack stack,
Direction from)
Attempts to insert the supplied stack into this inventory from the
specified direction.
|
getStackSize, transform, transform
builder, canFit, capacity, clear, contains, contains, containsAny, containsInventory, first, getArchetype, getInventoryProperty, getInventoryProperty, getMaxStackSize, getPlugin, getProperties, getProperties, getProperty, getProperty, hasChildren, intersect, next, offer, parent, peek, peek, poll, poll, query, query, query, query, query, query, query, queryAny, root, set, setMaxStackSize, size, slots, totalItems, transform, union
forEach, iterator, spliterator
boolean canAccept(ItemStack stack, Direction from)
stack
- Stack to checkfrom
- Direction to check for insertion fromboolean offer(ItemStack stack, Direction from)
stack
- Stack to insertfrom
- Direction to check for insertion fromInventory.offer(ItemStack)
boolean canGet(ItemStack stack, Direction from)
stack
- Stack to checkfrom
- Direction to check for retrieval from