9 sept. 2015, 17:34

Ta classe devrait être comme ça :

public class PickaxeRed extends ItemPickaxe
{
protected PickaxeRed(ToolMaterial p_i45347_1_)
{
super(p_i45347_1_);
}

public float func_150893_a(ItemStack stack, Block block)
{
return block == Blocks.redstone_ore || block == Blocks.lit_redstone_ore ? this.efficiencyOnProperMaterial : 1.0F;
}

@Override
public float getDigSpeed(ItemStack stack, Block block, int meta)
{
return func_150893_a(stack, block);
}

public boolean func_150897_b(Block block)
{
return block == Blocks.redstone_ore || block == Blocks.lit_redstone_ore;
}
}