Nothing to see here
This commit is contained in:
parent
b373c6fa27
commit
bb07edc77c
4 changed files with 50 additions and 2 deletions
39
ee3_common/ee3/common/core/addons/AddonRedPower2.java
Normal file
39
ee3_common/ee3/common/core/addons/AddonRedPower2.java
Normal file
|
@ -0,0 +1,39 @@
|
|||
package ee3.common.core.addons;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
|
||||
import ee3.common.core.helper.LogHelper;
|
||||
import ee3.common.core.helper.RecipeHelper;
|
||||
import ee3.common.recipe.RecipesTransmutationStone;
|
||||
import net.minecraft.src.Block;
|
||||
import net.minecraft.src.ItemStack;
|
||||
import net.minecraft.src.ModLoader;
|
||||
|
||||
public class AddonRedPower2 {
|
||||
|
||||
public static Block rp2Stone = null;
|
||||
|
||||
public static void initWorld() {
|
||||
|
||||
if (Loader.isModLoaded("RedPowerWorld")) {
|
||||
try {
|
||||
rp2Stone = (Block) Class.forName("RedPowerWorld").getField("blockStone").get(null);
|
||||
|
||||
for (ItemStack stone: RecipesTransmutationStone.transmutationStones) {
|
||||
// Extremely temporary recipe
|
||||
RecipeHelper.addRecipe(new ItemStack(rp2Stone.blockID, 1, 3), stone, Block.cobblestone, Block.cobblestone, Block.cobblestone, Block.cobblestone, Block.cobblestone, Block.cobblestone);
|
||||
}
|
||||
|
||||
LogHelper.log(Level.INFO, "Loaded RP2 World addon");
|
||||
}
|
||||
catch (Exception e) {
|
||||
LogHelper.log(Level.SEVERE, "Could not load RP2 World addon");
|
||||
e.printStackTrace(System.err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +1,7 @@
|
|||
package ee3.common.core.handlers;
|
||||
|
||||
import ee3.common.core.addons.AddonRedPower2;
|
||||
|
||||
/**
|
||||
* AddonHandler
|
||||
*
|
||||
|
@ -12,6 +14,8 @@ package ee3.common.core.handlers;
|
|||
*/
|
||||
public class AddonHandler {
|
||||
|
||||
public static void init() {}
|
||||
public static void init() {
|
||||
AddonRedPower2.initWorld();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -57,4 +57,8 @@ public class ConfigurationSettings {
|
|||
public static final String MINIUM_STONE_MAX_DURABILITY_CONFIGNAME = Strings.MINIUM_STONE_NAME + ".maxDurability";
|
||||
public static final int MINIUM_STONE_MAX_DURABILITY_DEFAULT = 1521;
|
||||
|
||||
public static int PHILOSOPHERS_STONE_MAX_DURABILITY;
|
||||
public static final String PHILOSOPHERS_STONE_MAX_DURABILITY_CONFIGNAME = Strings.PHILOSOPHER_STONE_NAME + ".maxDurability";
|
||||
public static final int PHILOSOPHERS_STONE_MAX_DURABILITY_DEFAULT = 10001;
|
||||
|
||||
}
|
||||
|
|
|
@ -31,7 +31,8 @@ public class RecipesTransmutationStone {
|
|||
|
||||
private static ItemStack philStone = new ItemStack(ModItems.philStone, 1, -1);
|
||||
private static ItemStack miniumStone = new ItemStack(ModItems.miniumStone, 1, -1);
|
||||
private static List<ItemStack> transmutationStones = Arrays.asList(miniumStone, philStone);
|
||||
|
||||
public static List<ItemStack> transmutationStones = Arrays.asList(miniumStone, philStone);
|
||||
|
||||
private static ItemStack anyCoal = new ItemStack(Item.coal, 1, -1);
|
||||
private static ItemStack anyWood = new ItemStack(Block.wood, 1, -1);
|
||||
|
|
Loading…
Reference in a new issue