// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst 

package net.minecraft.server;

import java.util.Random;

// Referenced classes of package net.minecraft.src:
//            Block, Material, mod_decor, IBlockAccess

public class Stol extends Block
{

    private boolean localFlag;

    public Stol(int i, int j)
    {
        super(i, j, Material.WOOD);
        textureId = j;
    }

    public int idDropped(int i, int j)
    {
        return mod_decor.stol.id;
    }

    public int a(Random random)
    {
        return 1;
    }

    public int a(int i, int j)
    {
        if(i == 1)
        {
            return textureId;
        }
        if(i == 0)
        {
            return textureId;
        }
        int k = mod_decor.stolSide;
        if(j == 2 && i == 2)
        {
            return k;
        }
        if(j == 3 && i == 5)
        {
            return k;
        }
        if(j == 0 && i == 3)
        {
            return k;
        }
        if(j == 1 && i == 4)
        {
            return k;
        } else
        {
            return mod_decor.stolSide;
        }
    }

    public int a(int i)
    {
        if(i == 1)
        {
            return textureId;
        }
        if(i == 0)
        {
            return textureId;
        }
        if(i == 3)
        {
            return mod_decor.stolSide;
        } else
        {
            return mod_decor.stolSide;
        }
    }

    public boolean a()
    {
        return false;
    }

    public boolean b(IBlockAccess iblockaccess, int i, int j, int k, int l)
    {
        int i1 = iblockaccess.getTypeId(i, j, k);
        if(!localFlag && i1 == id)
        {
            return false;
        } else
        {
            return super.b(iblockaccess, i, j, k, l);
        }
    }
}
