// 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

public class Wbrick extends Block
{

    public Wbrick(int i, int j)
    {
        super(i, j, Material.STONE);
        a(true);
    }

    public int getDropType(int i, Random random, int j)
    {
        return mod_decor.wbrickItem.id;
    }

    public int a(Random random)
    {
        return 1 + random.nextInt(4);
    }
    public void a(World world, int i, int j, int k, Random random)
    {
    	if(world.getLightLevel(i, j + 1, k) >= 12 && world.getTypeId(i, j + 1, k) == 0 && world.getTypeId(i, j + 2, k) == 0 && random.nextInt(100) == 53 )
        {
            world.setTypeId(i, j, k, mod_decor.wbrickt.id);

        } 
        
    }
}
