Markus' (Notch's) Texture loader in Prelude of the Chambered

How does his program read the textures from a single image? I’ve been pondering this for a while and can’t figure it out.

BufferedImage.getSubimage(int x, int y, int w, int h)

He just have the parameters mapped,to load all the different parts into different images.