Slot.metaAndCount

Item's meta or uses (unsigned short) left-shifted 8 times and the count (unisgned byte).

struct Slot
int metaAndCount;

Examples

var encoded = item.meta << 8 | item.count
var meta = encoded >> 8
var count = count & 255

Meta