private void getTexCoords(BufferedInputStream stream, byte[] bytes) throws IOException { ByteArrayInputStream ba = new ByteArrayInputStream( bytes, header.offsetTexCoord - 68, bytes.length - header.offsetTexCoord); LittleEndianDataInputStream is = new LittleEndianDataInputStream(ba); for (int i = 0; i < header.numTexCoord; i++) { co.texCoords.add( new Uv( (float) is.readShort() / (float) header.skinWidth, (float) is.readShort() / (float) header.skinHeight)); } }