Slot.full

Checks whether or not the slot is full. The slot is considered full when its count is equals or higher than the item's max stackable size.

struct Slot
pure nothrow @property @safe @nogc
bool
full
()

Examples

assert(Slot(new Items.DiamondSword(), 1).full);
assert(!Slot(new Items.Snowball(), 15).full);

This property should be called only if the slot isn't empty due to its call on the item's property, that can be null.

if(!slot.empty && slot.full) { ... }

Meta