aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/tectech/recipe
diff options
context:
space:
mode:
authorGDCloud <93287602+GDCloudstrike@users.noreply.github.com>2024-09-15 19:38:40 +0200
committerGitHub <noreply@github.com>2024-09-15 19:38:40 +0200
commitdda786c0183f6655a4a264edf2d75688e7fe895e (patch)
treed818890893be86d0b61f1fa17605896640999089 /src/main/java/tectech/recipe
parent6d4894f688c9ae1fdd5c8cee1cd8f0d204220ff9 (diff)
downloadGT5-Unofficial-dda786c0183f6655a4a264edf2d75688e7fe895e.tar.gz
GT5-Unofficial-dda786c0183f6655a4a264edf2d75688e7fe895e.tar.bz2
GT5-Unofficial-dda786c0183f6655a4a264edf2d75688e7fe895e.zip
Godforge finale (#3080)
Co-authored-by: BucketBrigade <138534411+CookieBrigade@users.noreply.github.com> Co-authored-by: Martin Robertz <dream-master@gmx.net> Co-authored-by: serenibyss <10861407+serenibyss@users.noreply.github.com>
Diffstat (limited to 'src/main/java/tectech/recipe')
-rw-r--r--src/main/java/tectech/recipe/GodforgePlasmaFrontend.java7
-rw-r--r--src/main/java/tectech/recipe/TecTechRecipeMaps.java10
2 files changed, 14 insertions, 3 deletions
diff --git a/src/main/java/tectech/recipe/GodforgePlasmaFrontend.java b/src/main/java/tectech/recipe/GodforgePlasmaFrontend.java
index 5dfc46b1cf..f5297702b5 100644
--- a/src/main/java/tectech/recipe/GodforgePlasmaFrontend.java
+++ b/src/main/java/tectech/recipe/GodforgePlasmaFrontend.java
@@ -1,5 +1,7 @@
package tectech.recipe;
+import static gregtech.api.util.GTRecipeConstants.FOG_PLASMA_MULTISTEP;
+import static gregtech.api.util.GTRecipeConstants.FOG_PLASMA_TIER;
import static gregtech.api.util.GTUtility.trans;
import static net.minecraft.util.StatCollector.translateToLocal;
@@ -52,11 +54,10 @@ public class GodforgePlasmaFrontend extends RecipeMapFrontend {
long eut = recipeInfo.recipe.mEUt;
long duration = recipeInfo.recipe.mDuration;
String multistep = "No";
- if (recipeInfo.recipe.mSpecialItems.toString()
- .equals("true")) {
+ if (recipeInfo.recipe.getMetadataOrDefault(FOG_PLASMA_MULTISTEP, false)) {
multistep = "Yes";
}
- String requiredUpgrade = switch (recipeInfo.recipe.mSpecialValue) {
+ String requiredUpgrade = switch (recipeInfo.recipe.getMetadataOrDefault(FOG_PLASMA_TIER, 0)) {
case 1 -> "T4-T5";
case 2 -> "Exotic";
default -> "T1-T3";
diff --git a/src/main/java/tectech/recipe/TecTechRecipeMaps.java b/src/main/java/tectech/recipe/TecTechRecipeMaps.java
index b1c3608f45..d4908df5b7 100644
--- a/src/main/java/tectech/recipe/TecTechRecipeMaps.java
+++ b/src/main/java/tectech/recipe/TecTechRecipeMaps.java
@@ -10,6 +10,7 @@ import gregtech.api.recipe.RecipeMap;
import gregtech.api.recipe.RecipeMapBackend;
import gregtech.api.recipe.RecipeMapBuilder;
import gregtech.api.util.GTRecipe;
+import gregtech.nei.formatter.HeatingCoilSpecialValueFormatter;
import tectech.thing.CustomItemList;
import tectech.thing.gui.TecTechUITextures;
@@ -74,5 +75,14 @@ public class TecTechRecipeMaps {
.neiTransferRect(78, 33, 20, 20)
.frontend(GodforgeExoticFrontend::new)
.build();
+ public static final RecipeMap<RecipeMapBackend> godforgeMoltenRecipes = RecipeMapBuilder.of("gt.recipe.fog_molten")
+ .maxIO(6, 6, 1, 2)
+ .minInputs(1, 0)
+ .progressBar(TecTechUITextures.PROGRESSBAR_GODFORGE_PLASMA, ProgressBar.Direction.RIGHT)
+ .neiSpecialInfoFormatter(HeatingCoilSpecialValueFormatter.INSTANCE)
+ .logo(TecTechUITextures.PICTURE_GODFORGE_LOGO)
+ .logoSize(18, 18)
+ .logoPos(151, 63)
+ .build();
}