aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java21
-rw-r--r--src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java12
-rw-r--r--src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java15
-rw-r--r--src/main/java/GoodGenerator/util/DescTextLocalization.java13
-rw-r--r--src/main/java/GoodGenerator/util/MyRecipeAdder.java6
5 files changed, 31 insertions, 36 deletions
diff --git a/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java b/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java
index 91e43d23f1..39b257cb60 100644
--- a/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java
+++ b/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java
@@ -1,6 +1,7 @@
package GoodGenerator.Blocks.TEs;
import GoodGenerator.Loader.Loaders;
+import GoodGenerator.util.DescTextLocalization;
import GoodGenerator.util.MyRecipeAdder;
import com.github.bartimaeusnek.bartworks.util.Coords;
import com.github.bartimaeusnek.crossmod.tectech.TecTechEnabledMulti;
@@ -23,6 +24,7 @@ import gregtech.api.util.GT_Utility;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.fluids.FluidStack;
import org.lwjgl.input.Keyboard;
@@ -189,16 +191,7 @@ public class FuelRefineFactory extends GT_MetaTileEntity_MultiblockBase_EM imple
@Override
public String[] getStructureDescription(ItemStack itemStack){
- return new String[]{
- "8x Field Restriction Glass",
- "32x Field Restriction Coil of any tier",
- "At least 104x Naquadah Fuel Refine Factory Casing",
- "1~16x Input Hatch",
- "1~16x Output Hatch",
- "1~16x Input Bus",
- "1~16x Energy Hatch",
- "All the hatches should adjoin the field restriction glass"
- };
+ return DescTextLocalization.addText("FuelRefineFactory.hint", 8);
}
public boolean dfs(Block e, World w,int x,int y,int z, int cnt){
@@ -339,6 +332,14 @@ public class FuelRefineFactory extends GT_MetaTileEntity_MultiblockBase_EM imple
}
@Override
+ public String[] getInfoData() {
+ String[] infoData = new String[super.getInfoData().length + 1];
+ System.arraycopy(super.getInfoData(),0,infoData,0, super.getInfoData().length);
+ infoData[super.getInfoData().length] = StatCollector.translateToLocal("scanner.info.FRF") + " " + this.Tier;
+ return infoData;
+ }
+
+ @Override
@SuppressWarnings("ALL")
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) {
if(aSide == aFacing){
diff --git a/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java
index 2dd7e7a9b2..38ec9ced0b 100644
--- a/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java
+++ b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java
@@ -2,6 +2,7 @@ package GoodGenerator.Blocks.TEs;
import GoodGenerator.Items.MyMaterial;
import GoodGenerator.Loader.Loaders;
+import GoodGenerator.util.DescTextLocalization;
import GoodGenerator.util.MyRecipeAdder;
import com.github.bartimaeusnek.crossmod.tectech.TecTechEnabledMulti;
import com.github.technus.tectech.mechanics.constructable.IConstructable;
@@ -49,16 +50,7 @@ public class MultiNqGenerator extends GT_MetaTileEntity_MultiblockBase_EM implem
@Override
public String[] getStructureDescription(ItemStack itemStack) {
- return new String[]{
- "6x TungstenSteel Pipe Casing",
- "48x Field Restriction Casing",
- "36x Radiation Proof Steel Frame Box",
- "At least 77x Radiation Proof Machine Casing",
- "1~3x Input Hatch",
- "0~1x Output Hatch",
- "1x Maintenance Hatch",
- "1x Dynamo Hatch"
- };
+ return DescTextLocalization.addText("MultiNqGenerator.hint", 8);
}
public final boolean addToGeneratorList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex){
diff --git a/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java b/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java
index 66189cbc62..9e6ca54607 100644
--- a/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java
+++ b/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java
@@ -1,6 +1,7 @@
package GoodGenerator.Blocks.TEs;
import GoodGenerator.Loader.Loaders;
+import GoodGenerator.util.DescTextLocalization;
import com.github.bartimaeusnek.crossmod.tectech.TecTechEnabledMulti;
import com.github.technus.tectech.mechanics.constructable.IConstructable;
import com.github.technus.tectech.mechanics.structure.IStructureDefinition;
@@ -176,19 +177,7 @@ public class UniversalChemicalFuelEngine extends GT_MetaTileEntity_MultiblockBas
@Override
public String[] getStructureDescription(ItemStack itemStack) {
- 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"
- };
+ return DescTextLocalization.addText("UniversalChemicalFuelEngine.hint", 11);
}
@Override
diff --git a/src/main/java/GoodGenerator/util/DescTextLocalization.java b/src/main/java/GoodGenerator/util/DescTextLocalization.java
new file mode 100644
index 0000000000..dfe5a4a537
--- /dev/null
+++ b/src/main/java/GoodGenerator/util/DescTextLocalization.java
@@ -0,0 +1,13 @@
+package GoodGenerator.util;
+
+import net.minecraft.util.StatCollector;
+
+public class DescTextLocalization {
+ public static String[] addText(String preFix, int length){
+ String[] text = new String[length];
+ for (int i = 0; i < length; i ++) {
+ text[i] = StatCollector.translateToLocal(preFix + "." + i);
+ }
+ return text;
+ }
+}
diff --git a/src/main/java/GoodGenerator/util/MyRecipeAdder.java b/src/main/java/GoodGenerator/util/MyRecipeAdder.java
index 2d91943922..85c36a1ea8 100644
--- a/src/main/java/GoodGenerator/util/MyRecipeAdder.java
+++ b/src/main/java/GoodGenerator/util/MyRecipeAdder.java
@@ -19,7 +19,7 @@ public class MyRecipeAdder {
null,
"goodgenerator:textures/gui/naquadah_reactor",
0,0,1,1,1,
- "Basic Output Voltage: ",
+ StatCollector.translateToLocal("value.naquadah_reactor") + " ",
1,
" EU/t",
false,
@@ -33,9 +33,9 @@ public class MyRecipeAdder {
null,
"gregtech:textures/gui/basicmachines/FusionReactor",
6,0, 0, 1, 1,
- "Need Tier ",
+ StatCollector.translateToLocal("value.naquadah_fuel_refine_factory.0") + " ",
1,
- " Coil",
+ StatCollector.translateToLocal("value.naquadah_fuel_refine_factory.1"),
true,
true
);