public QbItemType GetQbItemType(uint type) { for (int i = 0; i < _types.GetUpperBound(0) + 1; i++) { if (_types[i, (int)PakFormatType] == type) return (QbItemType)i; } return 0; }