// 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.src;

import java.util.Random;

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

public class Garshek extends Block
{

    protected Garshek(int i, int j)
    {
        super(i, j, Material.ground);
        setBlockBounds(0.25F, 0.0F, 0.25F, 0.75F, 0.9F, 0.75F);
    }

    public int idDropped(int i, Random random, int j)
    {
        return mod_decor.garshekItem2.shiftedIndex;
    }

    public int getRenderType()
    {
        return 1;
    }

    public boolean renderAsNormalBlock()
    {
        return false;
    }

    public boolean isOpaqueCube()
    {
        return false;
    }

    public boolean canPlaceBlockAt(World world, int i, int j, int k)
    {
        return world.isBlockNormalCube(i, j - 1, k) || world.getBlockId(i, j - 1, k) == Block.fence.blockID;
    }
}
