hasLength property

bool get hasLength

If the tag is a List and has a length

Implementation

bool get hasLength {
  switch (nbtTagType) {
    case NbtTagType.TAG_LIST:
    case NbtTagType.TAG_BYTE_ARRAY:
    case NbtTagType.TAG_INT_ARRAY:
    case NbtTagType.TAG_LONG_ARRAY:
      return true;
    default:
      return false;
  }
}