Merge remote-tracking branch 'remotes/origin/master' into 1.8.8

# Conflicts:
#	src/main/java/techreborn/compat/CompatManager.java
This commit is contained in:
Modmuss50 2015-12-16 17:10:25 +00:00
commit 0fdba82490
5 changed files with 453 additions and 0 deletions

View file

@ -1190,6 +1190,29 @@ public class RecipesIC2 implements ICompatModule {
'D', ItemDusts.getDustByName("diamond"),
'A', IC2Items.getItem("advancedAlloy"));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lithiumBatpack, 1, OreDictionary.WILDCARD_VALUE),
"BCB", "BPB", "B B",
'B', new ItemStack(ModItems.lithiumBattery),
'P', "plateAluminum",
'C', IC2Items.getItem("advancedCircuit"));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lithiumBattery, 1, OreDictionary.WILDCARD_VALUE),
" C ", "PFP", "PFP",
'F', ItemCells.getCellByName("lithium"),
'P', "plateAluminum",
'C', IC2Items.getItem("insulatedGoldCableItem"));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lapotronpack, 1, OreDictionary.WILDCARD_VALUE),
"FOF", "SPS", "FIF",
'F', ItemParts.getPartByName("energyFlowCircuit"),
'O', new ItemStack(ModItems.lapotronicOrb),
'S', ItemParts.getPartByName("superConductor"),
'I', "ingotIridium",
'P', new ItemStack(ModItems.lapotronpack));
Recipes.compressor.addRecipe(new RecipeInputOreDict("dustLazurite"), null, ItemParts.getPartByName("lazuriteChunk"));
Core.logHelper.info("Added Expensive IC2 Recipes");
}

View file

@ -2,6 +2,7 @@ package techreborn.compat;
import net.minecraftforge.fml.common.Loader;
import techreborn.compat.jei.JEIPlugin;
import techreborn.compat.recipes.RecipesStandalone;
import techreborn.compat.waila.CompatModuleWaila;
import java.util.ArrayList;
@ -31,6 +32,7 @@ public class CompatManager {
}
registerCompact(JEIPlugin.class, "JEI");
registerCompact(CompatModuleWaila.class, "Waila");
registerCompact(RecipesStandalone.class);
}
public void registerCompact(Class<?> moduleClass, Object... objs) {

View file

@ -0,0 +1,375 @@
package techreborn.compat.recipes;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import reborncore.common.util.CraftingHelper;
import techreborn.api.reactor.FusionReactorRecipe;
import techreborn.api.reactor.FusionReactorRecipeHelper;
import techreborn.api.recipe.RecipeHandler;
import techreborn.api.recipe.machines.BlastFurnaceRecipe;
import techreborn.blocks.BlockOre;
import techreborn.compat.ICompatModule;
import techreborn.config.ConfigTechReborn;
import techreborn.init.ModBlocks;
import techreborn.init.ModItems;
import techreborn.items.*;
public class RecipesStandalone implements ICompatModule {
@Override
public void preInit(FMLPreInitializationEvent event) {
}
@Override
public void init(FMLInitializationEvent event) {
addShappedIc2Recipes();
addTRRecipes();
FusionReactorRecipeHelper.registerRecipe(new FusionReactorRecipe(ItemCells.getCellByName("wolframium"), ItemCells.getCellByName("lithium"), BlockOre.getOreByName("Iridium"), 90000000, -2048, 1024));
}
@Override
public void postInit(FMLPostInitializationEvent event) {
}
@Override
public void serverStarting(FMLServerStartingEvent event) {
}
public void addTRRecipes() {
//General
CraftingHelper.addShapelessOreRecipe(new ItemStack(ModItems.manuel), "plateIron", Items.book);
CraftingHelper.addShapedOreRecipe(
ItemParts.getPartByName("machineParts", 16),
"CSC", "SCS", "CSC",
'S', "ingotSteel",
'C', ItemParts.getPartByName("basicCircuitBoard"));
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("energyFlowCircuit", 4),
"ATA", "LIL", "ATA",
'T', "plateTungsten",
'I', "plateIridium",
'A', ItemParts.getPartByName("advancedCircuitBoard"),
'L', new ItemStack(Items.emerald));
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("superconductor", 4),
"CCC", "TIT", "EEE",
'E', ItemParts.getPartByName("energyFlowCircuit"),
'C', ItemParts.getPartByName("heliumCoolantSimple"),
'T', "ingotTungsten",
'I', "plateIridium");
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lapotronicOrb),
"LLL", "LPL", "LLL",
'L', new ItemStack(Items.emerald),
'P', "plateIridium");
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.industrialSawmill),
"PAP",
"SSS",
"ACA",
'P', new ItemStack(Blocks.hopper),
'A', ItemParts.getPartByName("advancedCircuitBoard"),
'S', ItemParts.getPartByName("diamondSawBlade"),
'C', new ItemStack(ModBlocks.MachineCasing, 1, 2));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ComputerCube),
"DME", "MAM", "EMD",
'E', ItemParts.getPartByName("energyFlowCircuit"),
'D', ItemParts.getPartByName("dataOrb"),
'M', ItemParts.getPartByName("computerMonitor"),
'A', new ItemStack(ModBlocks.MachineCasing, 1, 2));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MatterFabricator),
"ETE", "AOA", "ETE",
'E', ItemParts.getPartByName("energyFlowCircuit"),
'T', new ItemStack(Items.enchanted_book),
'A', ModBlocks.HighAdvancedMachineBlock,
'O', ModItems.lapotronicOrb);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.thermalGenerator),
"III", "IHI", "CGC",
'I', "plateInvar",
'H', new ItemStack(Blocks.glass),
'C', "circuitBasic",
'G', new ItemStack(ModBlocks.heatGenerator));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.thermalGenerator),
"AAA", "AHA", "CGC",
'A', "plateAluminum",
'H', new ItemStack(Blocks.glass),
'C', "circuitBasic",
'G', new ItemStack(ModBlocks.heatGenerator));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.heatGenerator),
"III", "IHI", "CGC",
'I', "plateIron",
'H', new ItemStack(Blocks.iron_bars),
'C', "circuitBasic",
'G', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Gasturbine),
"IAI", "WGW", "IAI",
'I', "plateInvar",
'A', ItemParts.getPartByName("advancedCircuitBoard"),
'W', new ItemStack(Blocks.iron_bars),
'G', new ItemStack(Blocks.glass));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Gasturbine),
"IAI", "WGW", "IAI",
'I', "plateAluminum",
'A', ItemParts.getPartByName("advancedCircuitBoard"),
'W', new ItemStack(Blocks.iron_bars),
'G', new ItemStack(Blocks.glass));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Semifluidgenerator),
"III", "IHI", "CGC",
'I', "plateIron",
'H', new ItemStack(Blocks.glass),
'C', "circuitBasic",
'G', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Semifluidgenerator),
"AAA", "AHA", "CGC",
'A', "plateAluminum",
'H', new ItemStack(Blocks.glass),
'C', "circuitBasic",
'G', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.DieselGenerator),
"III", "I I", "CGC",
'I', "plateIron",
'C', "circuitBasic",
'G', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.DieselGenerator),
"AAA", "A A", "CGC",
'A', "plateAluminum",
'C', "circuitBasic",
'G', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MagicalAbsorber),
"CSC", "IBI", "CAC",
'C', "circuitMaster",
'S', "craftingSuperconductor",
'B', Blocks.beacon,
'A', ModBlocks.Magicenergeyconverter,
'I', "plateIridium");
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Magicenergeyconverter),
"CTC", "PBP", "CLC",
'C', "circuitAdvanced",
'P', "platePlatinum",
'B', Blocks.beacon,
'L', new ItemStack(Items.emerald),
'T', new ItemStack(Items.ender_eye));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Dragoneggenergysiphoner),
"CTC", "ISI", "CBC",
'I', "plateIridium",
'C', "circuitMaster",
'B', "batteryUltimate",
'S', ModBlocks.Supercondensator,
'T', new ItemStack(Items.ender_eye));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.centrifuge),
"SCS", "BEB", "SCS",
'S', "plateSteel",
'C', "circuitAdvanced",
'B', new ItemStack(ModBlocks.MachineCasing, 1, 2),
'E', new ItemStack(ModBlocks.AlloyFurnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.IndustrialElectrolyzer),
"SXS", "CEC", "SMS",
'S', "plateSteel",
'C', "circuitAdvanced",
'X', new ItemStack(ModBlocks.AlloyFurnace),
'E', new ItemStack(Blocks.enchanting_table),
'M', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.BlastFurnace),
"CHC", "HBH", "FHF",
'H', new ItemStack(ModItems.parts, 1, 17),
'C', "circuitAdvanced",
'B', new ItemStack(ModBlocks.MachineCasing, 1, 2),
'F', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Grinder),
"ECP", "GGG", "CBC",
'E', ModBlocks.IndustrialElectrolyzer,
'P', new ItemStack(Blocks.iron_bars),
'C', "circuitAdvanced",
'B', new ItemStack(ModBlocks.MachineCasing, 1, 2),
'G', "craftingGrinder");
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ImplosionCompressor),
"ABA", "CPC", "ABA",
'A', new ItemStack(Items.gold_ingot),
'C', "circuitAdvanced",
'B', new ItemStack(ModBlocks.MachineCasing, 1, 2),
'P', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.VacuumFreezer),
"SPS", "CGC", "SPS",
'S', "plateSteel",
'C', "circuitAdvanced",
'G', new ItemStack(Blocks.glass),
'P', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Distillationtower),
"CMC", "PBP", "EME",
'E', ModBlocks.IndustrialElectrolyzer,
'M', "circuitMaster",
'B', new ItemStack(ModBlocks.MachineCasing, 1, 2),
'C', ModBlocks.centrifuge,
'P', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.AlloyFurnace),
"III", "F F", "III",
'I', "plateIron",
'F', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ChemicalReactor),
"IMI", "CPC", "IEI",
'I', "plateInvar",
'C', "circuitAdvanced",
'M', new ItemStack(ModBlocks.AlloyFurnace),
'P', new ItemStack(ModBlocks.AlloyFurnace),
'E', new ItemStack(ModBlocks.AlloyFurnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ChemicalReactor),
"AMA", "CPC", "AEA",
'A', "plateAluminum",
'C', "circuitAdvanced",
'M', new ItemStack(ModBlocks.AlloyFurnace),
'P', new ItemStack(ModBlocks.AlloyFurnace),
'E', new ItemStack(ModBlocks.AlloyFurnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.RollingMachine),
"PCP", "MBM", "PCP",
'P', "craftingPiston",
'C', "circuitAdvanced",
'M', new ItemStack(ModBlocks.AlloyFurnace),
'B', new ItemStack(ModBlocks.AlloyFurnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ElectricCraftingTable),
"ITI", "IBI", "ICI",
'I', "plateIron",
'C', "circuitAdvanced",
'T', "crafterWood",
'B', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ElectricCraftingTable),
"ATA", "ABA", "ACA",
'A', "plateAluminum",
'C', "circuitAdvanced",
'T', "crafterWood",
'B', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.ChunkLoader),
"SCS", "CMC", "SCS",
'S', "plateSteel",
'C', "circuitMaster",
'M', new ItemStack(ModItems.parts, 1, 39));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.Lesu),
" L ", "CBC", " M ",
'L', new ItemStack(ModBlocks.MachineCasing, 1, 2),
'C', "circuitAdvanced",
'M', new ItemStack(ModBlocks.MachineCasing, 1, 2),
'B', ModBlocks.LesuStorage);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.HighAdvancedMachineBlock),
"CTC", "TBT", "CTC",
'C', "plateChrome",
'T', "plateTitanium",
'B', new ItemStack(ModBlocks.MachineCasing, 1, 2));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MachineCasing, 4, 0),
"III", "CBC", "III",
'I', "plateIron",
'C', "circuitBasic",
'B', new ItemStack(Blocks.furnace));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MachineCasing, 4, 1),
"SSS", "CBC", "SSS",
'S', "plateSteel",
'C', "circuitAdvanced",
'B', new ItemStack(ModBlocks.MachineCasing, 1, 2));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.MachineCasing, 4, 2),
"HHH", "CBC", "HHH",
'H', "plateChrome",
'C', "circuitElite",
'B', ModBlocks.HighAdvancedMachineBlock);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.quantumChest),
"DCD", "ATA", "DQD",
'D', ItemParts.getPartByName("dataOrb"),
'C', ItemParts.getPartByName("computerMonitor"),
'A', ModBlocks.HighAdvancedMachineBlock,
'Q', ModBlocks.digitalChest,
'T', new ItemStack(Items.ender_eye));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModBlocks.PlasmaGenerator),
"PPP", "PTP", "CGC",
'P', ItemPlates.getPlateByName("tungstensteel"),
'T', new ItemStack(ModBlocks.MachineCasing, 1, 2),
'G', new ItemStack(Blocks.furnace),
'C', ItemParts.getPartByName("energyFlowCircuit")
);
//UU
if (ConfigTechReborn.UUrecipesIridiamOre)
CraftingHelper.addShapedOreRecipe(ItemIngots.getIngotByName("iridium"),
"UUU",
" U ",
"UUU",
'U', ModItems.uuMatter);
//Blast Furnace
RecipeHandler.addRecipe(new BlastFurnaceRecipe(ItemCells.getCellByName("silicon", 2), null, ItemPlates.getPlateByName("silicon"), ItemCells.getCellByName("empty"), 1000, 120, 1500));
//CentrifugeRecipes
}
static void addShappedIc2Recipes() {
CraftingHelper.addShapedOreRecipe(ItemParts.getPartByName("iridiumAlloyIngot"),
"IAI", "ADA", "IAI",
'I', ItemIngots.getIngotByName("iridium"),
'D', ItemDusts.getDustByName("diamond"),
'A', new ItemStack(Items.diamond));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lithiumBatpack, 1, OreDictionary.WILDCARD_VALUE),
"BCB", "BPB", "B B",
'B', new ItemStack(ModItems.lithiumBattery),
'P', "plateAluminum",
'C', ItemParts.getPartByName("advancedCircuitBoard"));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lithiumBattery, 1, OreDictionary.WILDCARD_VALUE),
" C ", "PFP", "PFP",
'F', ItemCells.getCellByName("lithium"),
'P', "plateAluminum",
'C', new ItemStack(Items.golden_chestplate));
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.lapotronpack, 1, OreDictionary.WILDCARD_VALUE),
"FOF", "SPS", "FIF",
'F', ItemParts.getPartByName("energyFlowCircuit"),
'O', new ItemStack(ModItems.lapotronicOrb),
'S', ItemParts.getPartByName("superConductor"),
'I', "ingotIridium",
'P', new ItemStack(ModItems.lapotronpack));
}
}

View file

@ -37,6 +37,7 @@ public class ModItems {
public static Item rockCutter;
public static Item lithiumBatpack;
public static Item lapotronpack;
public static Item lithiumBattery;
public static Item omniTool;
public static Item advancedDrill;
public static Item lapotronicOrb;
@ -101,6 +102,8 @@ public class ModItems {
GameRegistry.registerItem(lithiumBatpack, "lithiumBatpack");
lapotronpack = PoweredItem.createItem(ItemLapotronPack.class);
GameRegistry.registerItem(lapotronpack, "lapotronPack");
lithiumBattery = PoweredItem.createItem(ItemLithiumBattery.class);
GameRegistry.registerItem(lithiumBattery, "lithiumBattery");
lapotronicOrb = PoweredItem.createItem(ItemLapotronicOrb.class);
GameRegistry.registerItem(lapotronicOrb, "lapotronicOrb");
omniTool = PoweredItem.createItem(ItemOmniTool.class);

View file

@ -0,0 +1,50 @@
package techreborn.items;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemStack;
import techreborn.api.power.IEnergyItemInfo;
import techreborn.client.TechRebornCreativeTab;
public class ItemLithiumBattery extends ItemTR implements IEnergyItemInfo {
public ItemLithiumBattery() {
super();
setMaxStackSize(1);
setMaxDamage(1);
setUnlocalizedName("techreborn.lithiumBattery");
setCreativeTab(TechRebornCreativeTab.instance);
}
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister iconRegister) {
this.itemIcon = iconRegister.registerIcon("techreborn:" + "lithiumBattery");
}
@Override
public double getMaxPower(ItemStack stack) {
return 100000;
}
@Override
public boolean canAcceptEnergy(ItemStack stack) {
return true;
}
@Override
public boolean canProvideEnergy(ItemStack stack) {
return true;
}
@Override
public double getMaxTransfer(ItemStack stack) {
return 64;
}
@Override
public int getStackTeir(ItemStack stack) {
return 1;
}
}