aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2022-12-14 06:50:08 +0900
committerGitHub <noreply@github.com>2022-12-13 22:50:08 +0100
commit346b2b703af30bdd7db794a707d0c98858b563fc (patch)
tree796c938f3eed5ff8a25c03b7c4c32961d62b866b /src
parent70c6945c945ad54220e56fe2a3bc160ecadcdcfa (diff)
downloadGT5-Unofficial-346b2b703af30bdd7db794a707d0c98858b563fc.tar.gz
GT5-Unofficial-346b2b703af30bdd7db794a707d0c98858b563fc.tar.bz2
GT5-Unofficial-346b2b703af30bdd7db794a707d0c98858b563fc.zip
Migrate to ModularUI part 2 (#246)
* Migrate to ModularUI part 2 * bad copy-paste Former-commit-id: 9cee6f273d6d9286d8b53d80248ae70d2c4f7f82
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java34
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_HTGR.java31
2 files changed, 35 insertions, 30 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java
index 73f56dc0d0..71eb970abb 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java
@@ -36,10 +36,12 @@ import com.github.bartimaeusnek.bartworks.util.StreamUtils;
import com.github.bartimaeusnek.bartworks.util.log.DebugLog;
import com.github.bartimaeusnek.crossmod.BartWorksCrossmod;
import com.google.common.collect.ArrayListMultimap;
+import com.gtnewhorizons.modularui.common.widget.ProgressBar;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.registry.GameRegistry;
import gnu.trove.map.hash.TObjectDoubleHashMap;
import gregtech.api.enums.*;
+import gregtech.api.gui.modularui.GT_UITextures;
import gregtech.api.objects.GT_ItemStack;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
@@ -604,21 +606,23 @@ public class StaticRecipeChangeLoaders {
public static void addElectricImplosionCompressorRecipes() {
if (eicMap == null) {
eicMap = new GT_Recipe.GT_Recipe_Map(
- new HashSet<>(GT_Recipe.GT_Recipe_Map.sImplosionRecipes.mRecipeList.size()),
- "gt.recipe.electricimplosioncompressor",
- "Electric Implosion Compressor",
- (String) null,
- "gregtech:textures/gui/basicmachines/Default",
- 1,
- 2,
- 0,
- 0,
- 1,
- "",
- 1,
- "",
- true,
- true);
+ new HashSet<>(GT_Recipe.GT_Recipe_Map.sImplosionRecipes.mRecipeList.size()),
+ "gt.recipe.electricimplosioncompressor",
+ "Electric Implosion Compressor",
+ (String) null,
+ "gregtech:textures/gui/basicmachines/Default",
+ 1,
+ 2,
+ 0,
+ 0,
+ 1,
+ "",
+ 1,
+ "",
+ true,
+ true)
+ .setSlotOverlay(false, false, GT_UITextures.OVERLAY_SLOT_IMPLOSION)
+ .setProgressBar(GT_UITextures.PROGRESSBAR_COMPRESS, ProgressBar.Direction.RIGHT);
GT_Recipe.GT_Recipe_Map.sImplosionRecipes.mRecipeList.stream()
.filter(e -> e.mInputs != null)
.forEach(recipe -> eicMap.addRecipe(
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_HTGR.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_HTGR.java
index 9c0fdecd74..ace13e1801 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_HTGR.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_HTGR.java
@@ -237,21 +237,22 @@ public class GT_TileEntity_HTGR extends GT_MetaTileEntity_EnhancedMultiBlockBase
.build();
public static final GT_Recipe.GT_Recipe_Map fakeRecipeMap = new GT_Recipe.GT_Recipe_Map(
- new HashSet<>(),
- "bw.recipe.htgr",
- "High Temperature Gas-cooled Reactor",
- null,
- "gregtech:textures/gui/basicmachines/Default",
- 1,
- 1,
- 1,
- 0,
- 1,
- "",
- 1,
- "",
- false,
- false);
+ new HashSet<>(),
+ "bw.recipe.htgr",
+ "High Temperature Gas-cooled Reactor",
+ null,
+ "gregtech:textures/gui/basicmachines/Default",
+ 1,
+ 1,
+ 1,
+ 0,
+ 1,
+ "",
+ 1,
+ "",
+ false,
+ false)
+ .useModularUI(true);
private static final int HELIUM_NEEDED = 730000;
private static final int powerUsage = BW_Util.getMachineVoltageFromTier(6);
private static final int maxcapacity = 720000;