Item.slot

Create a slot with the Item::max as count

class Item
final @property @safe
slot
()

Examples

Slot a = new Slot(new Items.Beetroot(), 12);
Slot b = new Items.Beetroot(); // same as new Items.Beetroot().slot;

assert(a.count == 12);
assert(b.count == 64);

Meta