From d2baa361abf00c2dd1c20d8b4735a6cacf0109d9 Mon Sep 17 00:00:00 2001 From: miozune Date: Fri, 2 Dec 2022 22:45:45 +0900 Subject: Migrate GUIs to ModularUI --- .../com/elisis/gtnhlanth/loader/RecipeAdder.java | 68 ++++++++++++---------- 1 file changed, 36 insertions(+), 32 deletions(-) (limited to 'src/main/java/com/elisis/gtnhlanth/loader') diff --git a/src/main/java/com/elisis/gtnhlanth/loader/RecipeAdder.java b/src/main/java/com/elisis/gtnhlanth/loader/RecipeAdder.java index 2d4fc46d80..7db207458e 100644 --- a/src/main/java/com/elisis/gtnhlanth/loader/RecipeAdder.java +++ b/src/main/java/com/elisis/gtnhlanth/loader/RecipeAdder.java @@ -1,5 +1,6 @@ package com.elisis.gtnhlanth.loader; +import gregtech.api.gui.modularui.GT_UITextures; import gregtech.api.util.GT_Recipe; import java.util.Collection; import java.util.HashSet; @@ -11,39 +12,42 @@ public class RecipeAdder { public static final RecipeAdder instance = new RecipeAdder(); - public final DigestMap DigesterRecipes = new DigestMap( - new HashSet<>(100), - "gtnhlanth.recipe.digester", - StatCollector.translateToLocal("tile.recipe.digester"), - null, - "gtnhlanth:textures/gui/Digester", - 1, - 1, - 1, - 1, - 1, - StatCollector.translateToLocal("value.digester") + ": ", // Heat Capacity - 1, - "K", - false, - false); + public final DigestMap DigesterRecipes = (DigestMap) new DigestMap( + new HashSet<>(100), + "gtnhlanth.recipe.digester", + StatCollector.translateToLocal("tile.recipe.digester"), + null, + "gtnhlanth:textures/gui/Digester", + 1, + 1, + 1, + 1, + 1, + StatCollector.translateToLocal("value.digester") + ": ", // Heat Capacity + 1, + "K", + false, + false) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE); - public final DissolutionTankMap DissolutionTankRecipes = new DissolutionTankMap( - new HashSet<>(100), - "gtnhlanth.recipe.disstank", - StatCollector.translateToLocal("tile.recipe.disstank"), - null, - "gtnhlanth:textures/gui/Disstank", - 2, - 3, - 1, - 1, - 1, - StatCollector.translateToLocal("value.disstank") + ": ", // Ratio - 1, - ":1", - false, - false); + public final DissolutionTankMap DissolutionTankRecipes = (DissolutionTankMap) new DissolutionTankMap( + new HashSet<>(100), + "gtnhlanth.recipe.disstank", + StatCollector.translateToLocal("tile.recipe.disstank"), + null, + "gtnhlanth:textures/gui/Disstank", + 2, + 3, + 1, + 1, + 1, + StatCollector.translateToLocal("value.disstank") + ": ", // Ratio + 1, + ":1", + false, + false) + .setProgressBar(GT_UITextures.PROGRESSBAR_ARROW_MULTIPLE) + .setUsualFluidInputCount(2); public class DigestMap extends GT_Recipe.GT_Recipe_Map { -- cgit