    001    package net.minecraft.client.renderer;
    002
    003    import cpw.mods.fml.relauncher.Side;
    004    import cpw.mods.fml.relauncher.SideOnly;
    005    import java.awt.image.BufferedImage;
    006
    007    @SideOnly(Side.CLIENT)
    008    public class ThreadDownloadImageData
    009    {
    010        /** The image data. */
    011        public BufferedImage image;
    012
    013        /** Number of open references to this ThreadDownloadImageData */
    014        public int referenceCount = 1;
    015
    016        /**
    017         * The GL texture name associated with this image, or -1 if the texture has not been allocated
    018         */
    019        public int textureName = -1;
    020
    021        /**
    022         * True if the texture has been allocated and the image copied to the texture.  This is reset if global rendering
    023         * settings change, so that setupTexture will be called again.
    024         */
    025        public boolean textureSetupComplete = false;
    026
    027        public ThreadDownloadImageData(String par1, IImageBuffer par2IImageBuffer)
    028        {
    029            (new ThreadDownloadImage(this, par1, par2IImageBuffer)).start();
    030        }
    031    }