aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlodBlock <1356392126@qq.com>2021-07-17 17:18:30 +0800
committerGlodBlock <1356392126@qq.com>2021-07-17 17:18:30 +0800
commitdc7299a27e7c3c74d0a48b808505c39754c918aa (patch)
tree324d477eca99f554cedcd63feab9cf5da2b52561
parentecf0c7f7850257c39a8e58fef77b03c93d745489 (diff)
downloadGT5-Unofficial-dc7299a27e7c3c74d0a48b808505c39754c918aa.tar.gz
GT5-Unofficial-dc7299a27e7c3c74d0a48b808505c39754c918aa.tar.bz2
GT5-Unofficial-dc7299a27e7c3c74d0a48b808505c39754c918aa.zip
fix some desc text
-rw-r--r--src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java4
-rw-r--r--src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java2
-rw-r--r--src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java59
3 files changed, 60 insertions, 5 deletions
diff --git a/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java b/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java
index ae74dfcea0..91e43d23f1 100644
--- a/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java
+++ b/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java
@@ -163,7 +163,6 @@ public class FuelRefineFactory extends GT_MetaTileEntity_MultiblockBase_EM imple
.addInfo("The structure is too complex!")
.addInfo("Follow the TecTech blueprint to build the main structure.")
.addSeparator()
- .addController("Front bottom")
.addInputHatch("The casings adjoin the field restriction glass.")
.addInputBus("The casings adjoin the field restriction glass.")
.addOutputHatch("The casings adjoin the field restriction glass.")
@@ -197,7 +196,8 @@ public class FuelRefineFactory extends GT_MetaTileEntity_MultiblockBase_EM imple
"1~16x Input Hatch",
"1~16x Output Hatch",
"1~16x Input Bus",
- "1~16x Energy Hatch"
+ "1~16x Energy Hatch",
+ "All the hatches should adjoin the field restriction glass"
};
}
diff --git a/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java
index 5243ce819a..2dd7e7a9b2 100644
--- a/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java
+++ b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java
@@ -50,7 +50,7 @@ public class MultiNqGenerator extends GT_MetaTileEntity_MultiblockBase_EM implem
@Override
public String[] getStructureDescription(ItemStack itemStack) {
return new String[]{
- "6x Tungstensteel Pipe Casing",
+ "6x TungstenSteel Pipe Casing",
"48x Field Restriction Casing",
"36x Radiation Proof Steel Frame Box",
"At least 77x Radiation Proof Machine Casing",
diff --git a/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java b/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java
index bf96b6f29f..66189cbc62 100644
--- a/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java
+++ b/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java
@@ -14,11 +14,14 @@ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.implementations.*;
import gregtech.api.render.TextureFactory;
+import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;
import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
+import org.lwjgl.input.Keyboard;
import java.util.ArrayList;
import java.util.Collection;
@@ -32,7 +35,7 @@ public class UniversalChemicalFuelEngine extends GT_MetaTileEntity_MultiblockBas
protected final double DIESEL_EFFICIENCY_COEFFICIENT = 0.45D;
protected final double GAS_EFFICIENCY_COEFFICIENT = 0.30D;
- private long leftEnergy = 0;
+ protected long leftEnergy = 0;
private IStructureDefinition<UniversalChemicalFuelEngine> multiDefinition = null;
@@ -173,7 +176,19 @@ public class UniversalChemicalFuelEngine extends GT_MetaTileEntity_MultiblockBas
@Override
public String[] getStructureDescription(ItemStack itemStack) {
- return new String[0];
+ return new String[]{
+ "93x Stable Titanium Machine Casings",
+ "14x Titanium Pipe Casings",
+ "14x Titanium Gear Box Casings",
+ "14x Titanium Plated Cylinders",
+ "14x Engine Intake Casings",
+ "Hint block 0: Air",
+ "Hint block 1: Maintenance Hatch",
+ "Hint block 2: Muffler Hatch",
+ "Hint block 3: Input Hatch",
+ "Hint block 3: Dynamo Hatch",
+ "Doesn't support TecTech Dynamo Hatch"
+ };
}
@Override
@@ -187,6 +202,46 @@ public class UniversalChemicalFuelEngine extends GT_MetaTileEntity_MultiblockBas
}
@Override
+ public void loadNBTData(NBTTagCompound aNBT){
+ super.loadNBTData(aNBT);
+ this.leftEnergy = aNBT.getLong("mLeftEnergy");
+ }
+
+ @Override
+ public void saveNBTData(NBTTagCompound aNBT){
+ super.saveNBTData(aNBT);
+ aNBT.setLong("mLeftEnergy", this.leftEnergy);
+ }
+
+ @Override
+ public String[] getDescription(){
+ final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
+ tt.addMachineType("Chemical Engine")
+ .addInfo("BURNING BURNING BURNING")
+ .addInfo("Use combustible liquid to generate power.")
+ .addInfo("You need to supply Combustion Promoter to keep it running.")
+ .addInfo("This engine will consume all the fuel and combustion promoter in the hatch every second.")
+ .addInfo("The efficiency is determined by the proportion of Combustion Promoter to fuel.")
+ .addInfo("The proportion is bigger, and the efficiency will be higher.")
+ .addInfo("It creates sqrt(Current Output Power) pollution every second")
+ .addInfo("If you forge to supply Combustion Promoter, this engine will swallow all the fuel without outputting energy.")
+ .addInfo("This engine follows the second law of thermodynamics, so the efficiency is up to 100%.")
+ .addInfo("The structure is too complex!")
+ .addInfo("Follow the TecTech blueprint to build the main structure.")
+ .addSeparator()
+ .addEnergyHatch("Hint block with dot 1")
+ .addMufflerHatch("Hint block with dot 2")
+ .addInputHatch("Hint block with dot 3")
+ .addDynamoHatch("Hint block with dot 4")
+ .toolTipFinisher("Good Generator");
+ if (!Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
+ return tt.getInformation();
+ } else {
+ return tt.getStructureInformation();
+ }
+ }
+
+ @Override
public boolean checkRecipe_EM(ItemStack aStack) {
ArrayList<FluidStack> tFluids = getStoredFluids();