    001package net.minecraft.block;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import java.util.Random;
    006import net.minecraft.block.material.Material;
    007import net.minecraft.client.renderer.texture.IconRegister;
    008import net.minecraft.world.World;
    009
    010public class BlockLockedChest extends Block
    011{
    012    protected BlockLockedChest(int par1)
    013    {
    014        super(par1, Material.wood);
    015    }
    016
    017    /**
    018     * Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
    019     */
    020    public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
    021    {
    022        return true;
    023    }
    024
    025    /**
    026     * Ticks the block if it's been scheduled
    027     */
    028    public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
    029    {
    030        par1World.setBlockToAir(par2, par3, par4);
    031    }
    032
    033    @SideOnly(Side.CLIENT)
    034
    035    /**
    036     * When this method is called, your block should register all the icons it needs with the given IconRegister. This
    037     * is the only chance you get to register icons.
    038     */
    039    public void registerIcons(IconRegister par1IconRegister) {}
    040}