2013-08-27 00:49:32 +02:00
|
|
|
package mekanism.tools.item;
|
2012-08-15 22:41:41 +02:00
|
|
|
|
2012-12-20 22:53:39 +01:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.item.EnumToolMaterial;
|
2012-08-15 22:41:41 +02:00
|
|
|
|
2013-03-18 17:23:57 +01:00
|
|
|
public class ItemMekanismShovel extends ItemMekanismTool
|
2012-08-15 22:41:41 +02:00
|
|
|
{
|
2014-03-08 02:00:25 +01:00
|
|
|
private static Block blocksEffectiveAgainst[];
|
2012-08-15 22:41:41 +02:00
|
|
|
|
2014-03-08 02:00:25 +01:00
|
|
|
public ItemMekanismShovel(int id, EnumToolMaterial enumtoolmaterial)
|
|
|
|
{
|
|
|
|
super(id, 1, enumtoolmaterial, blocksEffectiveAgainst);
|
|
|
|
}
|
2012-08-15 22:41:41 +02:00
|
|
|
|
2014-03-08 02:00:25 +01:00
|
|
|
@Override
|
|
|
|
public boolean canHarvestBlock(Block block)
|
|
|
|
{
|
|
|
|
if(block == Block.snow)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
2012-08-15 22:41:41 +02:00
|
|
|
|
2014-03-08 02:00:25 +01:00
|
|
|
return block == Block.blockSnow;
|
|
|
|
}
|
2012-08-15 22:41:41 +02:00
|
|
|
|
2014-03-08 02:00:25 +01: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
|
|
|
|
});
|
|
|
|
}
|
2012-08-15 22:41:41 +02:00
|
|
|
}
|