public void mouseClicked(int par1, int par2, int par3)
    {
        boolean var4 = par1 >= this.xPos && par1 < this.xPos + this.width && par2 >= this.yPos && par2 < this.yPos + this.height;

        if (this.canLoseFocus)
        {
            this.setFocused(this.isEnabled && var4);
        }

        if (this.isFocused && par3 == 0)
        {
            int var5 = par1 - this.xPos;

            if (this.enableBackgroundDrawing)
            {
                var5 -= 4;
            }

            String var6 = this.fontRenderer.trimStringToWidth(this.text.substring(this.field_50041_n), this.func_50019_l());
            this.func_50030_e(this.fontRenderer.trimStringToWidth(var6, var5).length() + this.field_50041_n);
        }
    }