Posted 01 October 2012 - 04:30 PM
Perhaps you want to make a mod that combines Mod X with ComputerCraft, well it is a lot simpler then you think. Just follow these steps! NOTE: You must be using Eclipse.
1. Select the Project in Package Explorer (in 1.2.5 this would be "Client" or "Server". In 1.3.2, this would be "Minecraft")
2. Go to File > Properties > Java Build Path > Libraries
3. Click "Add External JARs…" and open the mod
Now you can view the classes for the mod. They can be found in "Referenced Libraries" in your project. You may notice that classes default to minecraft, like Block and ItemStack, use their obfuscated names. This will prevent you from recompiling your mod because of the errors that will pop up. It is best to create an empty version of this file to throw it off your tail, here is an example for NEI.
Something like this will make MCP think that the mod will work. Do not run it in Eclipse while these files exist because Minecraft can not actually use these, they are to throw MCP a bone and shut up. You don't have to have all methods in the decoy, you just need enough for Eclipse and MCP not to light up with errors.
1. Select the Project in Package Explorer (in 1.2.5 this would be "Client" or "Server". In 1.3.2, this would be "Minecraft")
2. Go to File > Properties > Java Build Path > Libraries
3. Click "Add External JARs…" and open the mod
Now you can view the classes for the mod. They can be found in "Referenced Libraries" in your project. You may notice that classes default to minecraft, like Block and ItemStack, use their obfuscated names. This will prevent you from recompiling your mod because of the errors that will pop up. It is best to create an empty version of this file to throw it off your tail, here is an example for NEI.
Spoiler
package codechicken.nei.recipe;
import java.util.*;
import net.minecraft.src.GuiContainer;
import net.minecraft.src.ItemStack;
public class FurnaceRecipeHandler {
public class SmeltingPair {
public SmeltingPair (ItemStack in, ItemStack out)
{
}
}
public Set arecipes;
public Class<? extends GuiContainer> getGuiClass() {
// TODO Auto-generated method stub
return null;
}
public String getRecipeName() {
// TODO Auto-generated method stub
return null;
}
public void loadCraftingRecipes(String outputId, Object[] results) {
}
}