    001    package net.minecraft.client;
    002
    003    import cpw.mods.fml.relauncher.Side;
    004    import cpw.mods.fml.relauncher.SideOnly;
    005    import java.util.concurrent.Callable;
    006    import org.lwjgl.opengl.GL11;
    007
    008    @SideOnly(Side.CLIENT)
    009    public class CallableGLInfo implements Callable
    010    {
    011        /** The Minecraft instance. */
    012        final Minecraft mc;
    013
    014        public CallableGLInfo(Minecraft par1Minecraft)
    015        {
    016            this.mc = par1Minecraft;
    017        }
    018
    019        public String getTexturePack()
    020        {
    021            return GL11.glGetString(GL11.GL_RENDERER) + " GL version " + GL11.glGetString(GL11.GL_VERSION) + ", " + GL11.glGetString(GL11.GL_VENDOR);
    022        }
    023
    024        public Object call()
    025        {
    026            return this.getTexturePack();
    027        }
    028    }