package net.minecraft.client;// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: fullnames deadcode fieldsfirst safe 
// Source File Name:   SourceFile

import org.lwjgl.input.Keyboard;
import org.lwjgl.opengl.GL11;

public class nv extends bh
{

    protected java.lang.String a;
    private ob h;
    private int i;
    private int j;

    public nv(ob ob1)
    {
        a = "Edit sign message:";
        j = 0;
        h = ob1;
    }

    public void a()
    {
        e.clear();
        org.lwjgl.input.Keyboard.enableRepeatEvents(true);
        e.add(((java.lang.Object) (new fk(0, c / 2 - 100, d / 4 + 120, "Done"))));
    }

    public void h()
    {
        org.lwjgl.input.Keyboard.enableRepeatEvents(false);
    }

    public void g()
    {
        i++;
    }

    protected void a(fk fk1)
    {
        if(!fk1.g)
            return;
        if(fk1.f == 0)
        {
            h.j_();
            b.a(((bh) (null)));
        }
    }

    protected void a(char c, int k)
    {
        if(k == 200)
            j = j - 1 & 3;
        if(k == 208 || k == 28)
            j = j + 1 & 3;
        if(k == 14 && h.a[j].length() > 0)
            h.a[j] = h.a[j].substring(0, h.a[j].length() - 1);
        if ((" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_'abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñÑªº¿®¬½¼¡«»".indexOf(c) >= 0) && (h.a[j].length() < 15))
        {
            h.a[j] = h.a[j] + c;
        }
    }

    public void a(int k, int l, float f)
    {
        i();
        a(g, a, c / 2, 40, 0xffffff);
        org.lwjgl.opengl.GL11.glPushMatrix();
        org.lwjgl.opengl.GL11.glTranslatef(c / 2, d / 2, 50F);
        float f1 = 93.75F;
        org.lwjgl.opengl.GL11.glScalef(-f1, -f1, -f1);
        org.lwjgl.opengl.GL11.glRotatef(180F, 0.0F, 1.0F, 0.0F);
        ly ly1 = h.g();
        if(ly1 == ly.aE)
        {
            float f2 = (float)(h.f() * 360) / 16F;
            org.lwjgl.opengl.GL11.glRotatef(f2, 0.0F, 1.0F, 0.0F);
        } else
        {
            int i1 = h.f();
            float f3 = 0.0F;
            if(i1 == 2)
                f3 = 180F;
            if(i1 == 4)
                f3 = 90F;
            if(i1 == 5)
                f3 = -90F;
            org.lwjgl.opengl.GL11.glRotatef(f3, 0.0F, 1.0F, 0.0F);
            org.lwjgl.opengl.GL11.glTranslatef(0.0F, 0.3125F, 0.0F);
        }
        if((i / 6) % 2 == 0)
            h.b = j;
        fz.a.a(((ic) (h)), -0.5D, -0.75D, -0.5D, 0.0F);
        h.b = -1;
        org.lwjgl.opengl.GL11.glPopMatrix();
        super.a(k, l, f);
    }
}
