mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 23:13:21 +00:00
Merge branch 'master' of https://github.com/CrazyPants/EnderIO.git
This commit is contained in:
commit
2eb0214b2c
4 files changed
+20
-18
No files matched your search
@@ -74,7 +74,7 @@ public class MachineRecipes {
|
||||
ItemStack reservoir = new ItemStack(EnderIO.blockReservoir, 2, 0);
|
||||
Object glassSides;
|
||||
if(Config.useHardRecipes) {
|
||||
glassSides = "glassHardened";
|
||||
glassSides = "blockGlassHardened";
|
||||
} else {
|
||||
glassSides = "glass";
|
||||
}
|
||||
@@ -85,7 +85,7 @@ public class MachineRecipes {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(basicTank, "ibi", "bgb", "ibi", 'g', "glass", 'i', Items.iron_ingot, 'b', Blocks.iron_bars));
|
||||
|
||||
ItemStack advTank = new ItemStack(EnderIO.blockTank,1,1);
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(advTank, "ibi", "bgb", "ibi", 'g', "glassHardened", 'i', darkSteel, 'b', EnderIO.blockDarkIronBars));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(advTank, "ibi", "bgb", "ibi", 'g', "blockGlassHardened", 'i', darkSteel, 'b', EnderIO.blockDarkIronBars));
|
||||
|
||||
//mill
|
||||
ItemStack crusher = new ItemStack(EnderIO.blockCrusher, 1, 0);
|
||||
@@ -118,12 +118,12 @@ public class MachineRecipes {
|
||||
ItemStack solarPanel = new ItemStack(EnderIO.blockSolarPanel, 1, 0);
|
||||
ItemStack advSolarPanel = new ItemStack(EnderIO.blockSolarPanel, 1, 1);
|
||||
if(Config.useHardRecipes) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(solarPanel, "efe", "pfp", "cdc", 'd', Blocks.daylight_detector, 'f', "glassHardened", 'c', capacitor, 'e',
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(solarPanel, "efe", "pfp", "cdc", 'd', Blocks.daylight_detector, 'f', "blockGlassHardened", 'c', capacitor, 'e',
|
||||
energeticAlloy, 'p', phasedGold));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(advSolarPanel, "efe", "pfp", "cdc", 'd', Blocks.daylight_detector, 'f', enlightedQuartz, 'c', capacitor2, 'e',
|
||||
phasedIron, 'p', phasedGold));
|
||||
} else {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(solarPanel, "efe", "pfp", "cdc", 'd', Blocks.daylight_detector, 'f', "glassHardened", 'p', silicon, 'e',
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(solarPanel, "efe", "pfp", "cdc", 'd', Blocks.daylight_detector, 'f', "blockGlassHardened", 'p', silicon, 'e',
|
||||
energeticAlloy, 'c', electricSteel));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(advSolarPanel, "efe", "pfp", "cdc", 'd', Blocks.daylight_detector, 'f', enlightedQuartz, 'p', vibCry, 'e',
|
||||
phasedGold, 'c', phasedIron));
|
||||
|
||||
+3
-5
@@ -163,7 +163,7 @@ public class TileEntityStirlingGenerator extends AbstractMachineEntity implement
|
||||
|
||||
if(burnTime <= 0 && storedEnergy < powerHandler.getMaxEnergyStored()) {
|
||||
if(inventory[0] != null && inventory[0].stackSize > 0) {
|
||||
burnTime = Math.round(TileEntityFurnace.getItemBurnTime(inventory[0]) * getBurnTimeMultiplier());
|
||||
burnTime = Math.round(TileEntityFurnace.getItemBurnTime(inventory[0]) / getBurnTimeMultiplier());
|
||||
if(burnTime > 0) {
|
||||
totalBurnTime = burnTime;
|
||||
ItemStack containedItem = inventory[0].getItem().getContainerItem(inventory[0]);
|
||||
@@ -195,11 +195,9 @@ public class TileEntityStirlingGenerator extends AbstractMachineEntity implement
|
||||
|
||||
public float getBurnTimeMultiplier() {
|
||||
if(capacitorType == Capacitors.ACTIVATED_CAPACITOR) {
|
||||
//burn for 62.5% of the time to produce 2x the power, i.e. 1.25 the effecientcy
|
||||
return 1.25f;
|
||||
return 1.5f;
|
||||
} else if(capacitorType == Capacitors.ENDER_CAPACITOR) {
|
||||
//burn for half as long to produce 4x the power, i.e. twice the effecientcy
|
||||
return 1;
|
||||
return 1.5f;
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
|
||||
@@ -15,13 +15,15 @@ public enum Alloy {
|
||||
|
||||
public final String unlocalisedName;
|
||||
public final String iconKey;
|
||||
public final String oredictName;
|
||||
public final String oredictIngotName;
|
||||
public final String oredictBlockName;
|
||||
private final float hardness;
|
||||
|
||||
private Alloy(String baseName, float hardness) {
|
||||
this.unlocalisedName = "enderio." + baseName;
|
||||
this.iconKey = "enderio:" + baseName;
|
||||
this.oredictName = "ingot" + StringUtils.capitalize(baseName);
|
||||
this.oredictIngotName = "ingot" + StringUtils.capitalize(baseName);
|
||||
this.oredictBlockName = "block" + StringUtils.capitalize(baseName);
|
||||
this.hardness = hardness;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,9 +31,10 @@ public class MaterialRecipes {
|
||||
OreDictionary.registerOre("itemSilicon", new ItemStack(EnderIO.itemMaterial, 1, Material.SILICON.ordinal()));
|
||||
|
||||
for (Alloy alloy : Alloy.values()) {
|
||||
OreDictionary.registerOre(alloy.oredictName, new ItemStack(EnderIO.itemAlloy, 1, alloy.ordinal()));
|
||||
OreDictionary.registerOre(alloy.oredictIngotName, new ItemStack(EnderIO.itemAlloy, 1, alloy.ordinal()));
|
||||
OreDictionary.registerOre(alloy.oredictBlockName, new ItemStack(EnderIO.blockIngotStorage, 1, alloy.ordinal()));
|
||||
}
|
||||
|
||||
|
||||
OreDictionary.registerOre("nuggetPulsatingIron", new ItemStack(EnderIO.itemMaterial, 1, Material.PHASED_IRON_NUGGET.ordinal()));
|
||||
OreDictionary.registerOre("nuggetVibrantAlloy", new ItemStack(EnderIO.itemMaterial, 1, Material.VIBRANT_NUGGET.ordinal()));
|
||||
|
||||
@@ -47,7 +48,8 @@ public class MaterialRecipes {
|
||||
ItemStack pureGlass = new ItemStack(EnderIO.blockFusedQuartz, 1, BlockFusedQuartz.Type.GLASS.ordinal());
|
||||
OreDictionary.registerOre("glass", pureGlass);
|
||||
OreDictionary.registerOre("blockGlass", pureGlass);
|
||||
OreDictionary.registerOre("glassHardened", new ItemStack(EnderIO.blockFusedQuartz, 1, BlockFusedQuartz.Type.FUSED_QUARTZ.ordinal()));
|
||||
OreDictionary.registerOre("blockGlassHardened", new ItemStack(EnderIO.blockFusedQuartz, 1, BlockFusedQuartz.Type.FUSED_QUARTZ.ordinal()));
|
||||
OreDictionary.registerOre("blockGlassHardened", new ItemStack(EnderIO.blockFusedQuartz, 1, BlockFusedQuartz.Type.ENLIGHTENED_FUSED_QUARTZ.ordinal()));
|
||||
|
||||
//Skulls
|
||||
ItemStack skull = new ItemStack(Items.skull, 1, OreDictionary.WILDCARD_VALUE);
|
||||
@@ -148,15 +150,15 @@ public class MaterialRecipes {
|
||||
} else {
|
||||
GameRegistry.addShapedRecipe(enderCapacitor, " e ", "cgc", " e ", 'e', phasedGold, 'c', activatedCapacitor, 'g', Blocks.glowstone);
|
||||
}
|
||||
|
||||
|
||||
if(Config.reinforcedObsidianEnabled) {
|
||||
ItemStack reinfObs = new ItemStack(EnderIO.blockReinforcedObsidian);
|
||||
GameRegistry.addShapedRecipe(reinfObs , "dbd", "bob", "dbd", 'd', darkSteel, 'b', EnderIO.blockDarkIronBars, 'o', Blocks.obsidian);
|
||||
}
|
||||
|
||||
|
||||
for (Alloy alloy : Alloy.values()) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(EnderIO.blockIngotStorage, 1, alloy.ordinal()), "iii", "iii", "iii", 'i', alloy.oredictName));
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(EnderIO.itemAlloy, 9, alloy.ordinal()), new ItemStack(EnderIO.blockIngotStorage, 1, alloy.ordinal()));
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(EnderIO.blockIngotStorage, 1, alloy.ordinal()), "iii", "iii", "iii", 'i', alloy.oredictIngotName));
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(EnderIO.itemAlloy, 9, alloy.ordinal()), new ItemStack(EnderIO.blockIngotStorage, 1, alloy.ordinal()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user