Hi, I made some changes to one of the base files but what I'd like to do is get rid of the changes in the base file and make it so that a mod loader file is set up to do the changes. This is the base file with the parts that I have added bolded:
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// ItemTool, Block, EnumToolMaterial, Material
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// ItemTool, Block, EnumToolMaterial, Material
public class ItemPickaxe extends ItemTool
{
protected ItemPickaxe(int i, EnumToolMaterial enumtoolmaterial)
{
super(i, 2, enumtoolmaterial, blocksEffectiveAgainst);
}
public boolean canHarvestBlock(Block block)
{
if(block == Block.obsidian)
{
return toolMaterial.getHarvestLevel() == 3;
}
if(block == Block.blockDiamond || block == Block.oreDiamond)
{
return toolMaterial.getHarvestLevel() >= 2;
}
if(block == Block.blockGold || block == Block.oreGold)
{
return toolMaterial.getHarvestLevel() >= 2;
}
if(block == Block.blockSteel || block == Block.oreIron)
{
return toolMaterial.getHarvestLevel() >= 1;
}
if(block == mod_block.BlockCopper || block == mod_block.BlockoreCopper)
{
return toolMaterial.getHarvestLevel() >= 1;
}
if(block == Block.blockLapis || block == Block.oreLapis)
{
return toolMaterial.getHarvestLevel() >= 1;
}
if(block == Block.oreRedstone || block == Block.oreRedstoneGlowing)
{
return toolMaterial.getHarvestLevel() >= 2;
}
if(block.blockMaterial == Material.rock)
{
return true;
}
return block.blockMaterial == Material.iron;
}
private static Block blocksEffectiveAgainst[];
static
{
blocksEffectiveAgainst = (new Block[] {
Block.cobblestone, mod_block.BlockoreCopper, mod_block.BlockCopper, Block.stairDouble, Block.stairSingle, Block.stone, Block.sandStone, Block.cobblestoneMossy, Block.oreIron, Block.blockSteel, Block.oreCoal, Block.blockGold,
Block.oreGold, Block.oreDiamond, Block.blockDiamond, Block.ice, Block.netherrack, Block.oreLapis, Block.blockLapis
});
}
}