Mekanism-tilera-Edition/common/mekanism/tools/item/ItemMekanismShovel.java
2013-11-13 22:43:58 -05:00

33 lines
840 B
Java

package mekanism.tools.item;
import net.minecraft.block.Block;
import net.minecraft.item.EnumToolMaterial;
public class ItemMekanismShovel extends ItemMekanismTool
{
private static Block blocksEffectiveAgainst[];
public ItemMekanismShovel(int id, EnumToolMaterial enumtoolmaterial)
{
super(id, 1, enumtoolmaterial, blocksEffectiveAgainst);
}
@Override
public boolean canHarvestBlock(Block block)
{
if(block == Block.snow)
{
return true;
}
return block == Block.blockSnow;
}
static
{
blocksEffectiveAgainst = (new Block[]
{
Block.grass, Block.dirt, Block.sand, Block.gravel, Block.snow, Block.blockSnow, Block.blockClay, Block.tilledField, Block.slowSand, Block.mycelium
});
}
}