Slot.fill

Fills the slot setting the count as the max stacking value of the item.

struct Slot
pure nothrow @safe @nogc
void
fill
()

Examples

Slot slot = Slot(new Item.Snowball(), 1);
assert(slot.count == 1);
slot.fill();
assert(slot.count == 16);

Like full, this function requires item to not be null due to its call on its max property.

if(slot.item !is null) {
   slot.fill();
}

Meta