aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2018-01-29 22:15:28 +1000
committerJordan Byrne <draknyte1@hotmail.com>2018-01-29 22:15:28 +1000
commitcffd1acf470af2a79f24a4771e475e816de283b0 (patch)
tree9c7d531c937b0380ce0579f5d7e4537cd7d95201 /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities
parent0d44c0b8810bda7a6d16b7a3aa27affa28f648f2 (diff)
downloadGT5-Unofficial-cffd1acf470af2a79f24a4771e475e816de283b0.tar.gz
GT5-Unofficial-cffd1acf470af2a79f24a4771e475e816de283b0.tar.bz2
GT5-Unofficial-cffd1acf470af2a79f24a4771e475e816de283b0.zip
+ Added Patron Capes.
% Changed Power Sub-Station recipe, harder in GTNH. Closes #194. Also closes https://github.com/GTNewHorizons/NewHorizons/issues/2517. % Tweaked Industrial Sifter & Wash Plant items/operation. % Greatly improved the Iron Blast Furnace for GT 5.09. It is now double the speed of a Bronze/Bricked Blast Furnace.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java4
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java12
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IronBlastFurnace.java65
3 files changed, 55 insertions, 26 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java
index 6915b4c5ba..548b457f79 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java
@@ -12,6 +12,7 @@ import gregtech.api.util.GT_Recipe;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.core.lib.CORE;
+import gtPlusPlus.core.util.Utils;
import gtPlusPlus.xmod.gregtech.api.gui.GUI_MultiMachine;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
import net.minecraft.block.Block;
@@ -43,6 +44,7 @@ extends GregtechMeta_MultiBlockBase {
return new String[]{
"Controller Block for the Industrial Sifter",
"400% faster than single-block machines of the same voltage",
+ "Processes two items per voltage tier",
"Increased output chances",
"Size[WxHxL]: 5x3x5",
"Controller (Center Bottom)",
@@ -104,7 +106,7 @@ extends GregtechMeta_MultiBlockBase {
@Override
public boolean checkRecipe(final ItemStack aStack) {
- return checkRecipeGeneric(2, 100, 400, 8800);
+ return checkRecipeGeneric((2*Utils.calculateVoltageTier(this.getMaxInputVoltage())), 100, 400, 8800);
}
@Override
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java
index 2c9a332dae..7fd8ce871a 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java
@@ -1,5 +1,6 @@
package gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi;
+import gregtech.api.enums.GT_Values;
import gregtech.api.enums.TAE;
import gregtech.api.enums.Textures;
import gregtech.api.interfaces.ITexture;
@@ -10,6 +11,7 @@ import gregtech.api.util.GT_Recipe;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.core.lib.CORE;
+import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.fluid.FluidUtils;
import gtPlusPlus.xmod.gregtech.api.gui.GUI_MultiMachine;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
@@ -44,6 +46,7 @@ extends GregtechMeta_MultiBlockBase {
return new String[]{
"Controller Block for the Industrial Ore Washing Plant",
"80% faster than using single block machines of the same voltage",
+ "Processes one item per voltage tier",
"Size: 7x3x5 [WxHxL] (open)",
"X X",
"X X",
@@ -83,7 +86,10 @@ extends GregtechMeta_MultiBlockBase {
@Override
public boolean checkRecipe(final ItemStack aStack) {
- return checkRecipeGeneric(2, 100, 80);
+ if (checkForWater()) {
+ return checkRecipeGeneric((1*Utils.calculateVoltageTier(this.getMaxInputVoltage())), 100, 80);
+ }
+ return false;
}
@Override
@@ -308,13 +314,13 @@ extends GregtechMeta_MultiBlockBase {
}
}
}
- if ((tAmount == 45)){
+ if ((tAmount >= 45)){
Logger.WARNING("Filled structure.");
}
else {
Logger.WARNING("Did not fill structure.");
}
- return (tAmount == 45);
+ return (tAmount >= 45);
}
} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IronBlastFurnace.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IronBlastFurnace.java
index be28d3ef72..a8faeb9efa 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IronBlastFurnace.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IronBlastFurnace.java
@@ -1,5 +1,6 @@
package gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi;
+import gregtech.GT_Mod;
import gregtech.api.GregTech_API;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
@@ -45,17 +46,27 @@ extends MetaTileEntity {
@Override
public String[] getDescription() {
- return new String[]{"Sloooowly, Skip the Bronze age, Get some Steel!",
- "Multiblock: 3x3x5 hollow with opening on top",
- "40 Iron Plated Bricks required",
- "----",
- "Even though Iron melts hotter than bronze,",
- "this machine is to help players skip looking",
- "for tin and copper, which are not as common",
- "as Iron is. This machine takes 5x longer than the bronze",
- "blast furnace as a result.",
- "----",
- CORE.GT_Tooltip};
+ if (CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK) {
+ return new String[]{"Iron is a much better furnace material!",
+ "Can be Automated",
+ "Multiblock: 3x3x5 hollow with opening on top",
+ "Same shape as Bronze/Bricked blast furnace, except one ring of 8 taller.",
+ "40 Iron Plated Bricks required",
+ CORE.GT_Tooltip};
+ }
+ else {
+ return new String[]{"Sloooowly, Skip the Bronze age, Get some Steel!",
+ "Multiblock: 3x3x5 hollow with opening on top",
+ "40 Iron Plated Bricks required",
+ "----",
+ "Even though Iron melts hotter than bronze,",
+ "this machine is to help players skip looking",
+ "for tin and copper, which are not as common",
+ "as Iron is. This machine takes 5x longer than the bronze",
+ "blast furnace as a result.",
+ "----",
+ CORE.GT_Tooltip};
+ }
}
@Override
@@ -231,7 +242,7 @@ extends MetaTileEntity {
this.mProgresstime = 0;
this.mMaxProgresstime = 0;
try {
- // GT_Mod.instance.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "steel");
+ GT_Mod.instance.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "steel");
} catch (final Exception e) {
}
}
@@ -287,7 +298,17 @@ extends MetaTileEntity {
return false;
}
- private boolean checkRecipe() {
+ private int getProperTime(int time) {
+ if (CORE.MAIN_GREGTECH_5U_EXPERIMENTAL_FORK) {
+ return (int) (time/3);
+ }
+ else {
+ return time;
+ }
+ }
+
+ private boolean checkRecipe() {
+
if (!this.mMachine) {
return false;
}
@@ -296,57 +317,57 @@ extends MetaTileEntity {
if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 4) && (this.spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L)))) {
this.getBaseMetaTileEntity().decrStackSize(0, 1);
this.getBaseMetaTileEntity().decrStackSize(1, 4*3);
- this.mMaxProgresstime = 36000;
+ this.mMaxProgresstime = getProperTime(36000);
return true;
}
if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 2) && (this.spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 4L)))) {
this.getBaseMetaTileEntity().decrStackSize(0, 1);
this.getBaseMetaTileEntity().decrStackSize(1, 2*3);
- this.mMaxProgresstime = 4800*5;
+ this.mMaxProgresstime = getProperTime(4800);
return true;
}
if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (this.spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L)))) {
this.getBaseMetaTileEntity().decrStackSize(0, 9);
this.getBaseMetaTileEntity().decrStackSize(1, 4*3);
- this.mMaxProgresstime = 64800*5;
+ this.mMaxProgresstime = getProperTime(64800);
return true;
}
} else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustSteel")) {
if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 2) && (this.spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2L)))) {
this.getBaseMetaTileEntity().decrStackSize(0, 1);
this.getBaseMetaTileEntity().decrStackSize(1, 2*3);
- this.mMaxProgresstime = 3600*5;
+ this.mMaxProgresstime = getProperTime(3600);
return true;
}
if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 1) && (this.spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 2L)))) {
this.getBaseMetaTileEntity().decrStackSize(0, 1);
this.getBaseMetaTileEntity().decrStackSize(1, 1*3);
- this.mMaxProgresstime = 2400*5;
+ this.mMaxProgresstime = getProperTime(2400);
return true;
}
if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 2) && (this.spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 2L)))) {
this.getBaseMetaTileEntity().decrStackSize(0, 9);
this.getBaseMetaTileEntity().decrStackSize(1, 2*3);
- this.mMaxProgresstime = 32400*5;
+ this.mMaxProgresstime = getProperTime(32400);
return true;
}
} else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "blockIron")) {
if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 36) && (this.spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L)))) {
this.getBaseMetaTileEntity().decrStackSize(0, 1);
this.getBaseMetaTileEntity().decrStackSize(1, 64);
- this.mMaxProgresstime = 64800*9;
+ this.mMaxProgresstime = getProperTime(64800);
return true;
}
if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 18) && (this.spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4L)))) {
this.getBaseMetaTileEntity().decrStackSize(0, 1);
this.getBaseMetaTileEntity().decrStackSize(1, 18*3);
- this.mMaxProgresstime = 43200*5;
+ this.mMaxProgresstime = getProperTime(43200);
return true;
}
if (((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (this.spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L)))) {
this.getBaseMetaTileEntity().decrStackSize(0, 1);
this.getBaseMetaTileEntity().decrStackSize(1, 4*3);
- this.mMaxProgresstime = 64800*5;
+ this.mMaxProgresstime = getProperTime(64800);
return true;
}
}