public interface Slot extends Inventory
Inventory
with only a single stack.Modifier and Type | Interface and Description |
---|---|
static class |
Slot.Type
A type of Slot.
|
Inventory.Builder
Modifier and Type | Method and Description |
---|---|
int |
getStackSize()
Deprecated.
Use
Inventory.totalItems() instead. |
Slot |
transform()
Transforms this Slot into the default Type.
|
Slot |
transform(Slot.Type type)
Transforms this Slot into given Type.
|
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
@Deprecated int getStackSize()
Inventory.totalItems()
instead.Slot transform(Slot.Type type)
Slot.Type.INVENTORY
.type
- the type to transform intoSlot transform()