docs: private void checkTexRange(AiTextureType type, int index) {
          if (index < 0 || index > m_numTextures.get(type)) {
              throw new IndexOutOfBoundsException("Index: " + index + ", Size: " +
                      m_numTextures.get(type));
          }
      }