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

public class nn extends ik
{

    private int a;

    public nn(int i)
    {
        a = i;
    }

    public boolean a(cn cn1, java.util.Random random, int i, int j, int k)
    {
        if(cn1.a(i, j + 1, k) != ly.u.bc)
            return false;
        if(cn1.a(i, j - 1, k) != ly.u.bc)
            return false;
        if(cn1.a(i, j, k) != 0 && cn1.a(i, j, k) != ly.u.bc)
            return false;
        int l = 0;
        if(cn1.a(i - 1, j, k) == ly.u.bc)
            l++;
        if(cn1.a(i + 1, j, k) == ly.u.bc)
            l++;
        if(cn1.a(i, j, k - 1) == ly.u.bc)
            l++;
        if(cn1.a(i, j, k + 1) == ly.u.bc)
            l++;
        int i1 = 0;
        if(cn1.a(i - 1, j, k) == 0)
            i1++;
        if(cn1.a(i + 1, j, k) == 0)
            i1++;
        if(cn1.a(i, j, k - 1) == 0)
            i1++;
        if(cn1.a(i, j, k + 1) == 0)
            i1++;
        if(l == 3 && i1 == 1)
            cn1.d(i, j, k, a);
        return true;
    }
}
