    001    package net.minecraft.client.renderer.texturefx;
    002
    003    import cpw.mods.fml.relauncher.Side;
    004    import cpw.mods.fml.relauncher.SideOnly;
    005    import net.minecraft.client.renderer.RenderEngine;
    006    import org.lwjgl.opengl.GL11;
    007
    008    @SideOnly(Side.CLIENT)
    009    public class TextureFX
    010    {
    011        public byte[] imageData = new byte[1024];
    012        public int iconIndex;
    013        public boolean anaglyphEnabled = false;
    014
    015        /** Texture ID */
    016        public int textureId = 0;
    017        public int tileSize = 1;
    018        public int tileImage = 0;
    019
    020        public TextureFX(int par1)
    021        {
    022            this.iconIndex = par1;
    023        }
    024
    025        public void onTick() {}
    026
    027        public void bindImage(RenderEngine par1RenderEngine)
    028        {
    029            if (this.tileImage == 0)
    030            {
    031                GL11.glBindTexture(GL11.GL_TEXTURE_2D, par1RenderEngine.getTexture("/terrain.png"));
    032            }
    033            else if (this.tileImage == 1)
    034            {
    035                GL11.glBindTexture(GL11.GL_TEXTURE_2D, par1RenderEngine.getTexture("/gui/items.png"));
    036            }
    037        }
    038    }