Creates a slot giving an item and a count in range 0..255 (unsigned byte). Setting an higher value it's impossible due to protocol's limitations.
assert(Slot(new Items.DiamondSword(), 22).count == 22); assert(Slot(new Items.Snowball(), 2).count == 2); assert(Slot(null, 100).count == 0);
See Implementation
Creates a slot giving an item and a count in range 0..255 (unsigned byte). Setting an higher value it's impossible due to protocol's limitations.