2013-08-26 18:49:32 -04:00
|
|
|
package mekanism.tools.item;
|
2012-08-15 16:41:41 -04:00
|
|
|
|
2012-12-20 16:53:39 -05:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.item.EnumToolMaterial;
|
2012-08-15 16:41:41 -04:00
|
|
|
|
2013-03-18 12:23:57 -04:00
|
|
|
public class ItemMekanismShovel extends ItemMekanismTool
|
2012-08-15 16:41:41 -04:00
|
|
|
{
|
|
|
|
private static Block blocksEffectiveAgainst[];
|
|
|
|
|
2013-03-18 12:23:57 -04:00
|
|
|
public ItemMekanismShovel(int id, EnumToolMaterial enumtoolmaterial)
|
2012-08-15 16:41:41 -04:00
|
|
|
{
|
2012-11-28 20:03:55 -05:00
|
|
|
super(id, 1, enumtoolmaterial, blocksEffectiveAgainst);
|
2012-08-15 16:41:41 -04:00
|
|
|
}
|
|
|
|
|
2012-11-06 10:44:14 -05:00
|
|
|
@Override
|
2012-11-28 20:03:55 -05:00
|
|
|
public boolean canHarvestBlock(Block block)
|
2012-08-15 16:41:41 -04:00
|
|
|
{
|
2013-11-13 22:43:58 -05:00
|
|
|
if(block == Block.snow)
|
2012-08-15 16:41:41 -04:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2012-11-28 20:03:55 -05:00
|
|
|
return block == Block.blockSnow;
|
2012-08-15 16:41:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
{
|
|
|
|
blocksEffectiveAgainst = (new Block[]
|
|
|
|
{
|
|
|
|
Block.grass, Block.dirt, Block.sand, Block.gravel, Block.snow, Block.blockSnow, Block.blockClay, Block.tilledField, Block.slowSand, Block.mycelium
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|