aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorHoleFish <48403212+HoleFish@users.noreply.github.com>2024-01-21 17:07:01 +0800
committerGitHub <noreply@github.com>2024-01-21 10:07:01 +0100
commit0ac5e6c3606a7891a2ef6edf90a8a1a6f1299e4f (patch)
tree5d79e9a11a99951ea359421426c61c951ed9df12 /src/main
parent82bddbca8f76e2d011bbdab925b220fee9f320fa (diff)
downloadGT5-Unofficial-0ac5e6c3606a7891a2ef6edf90a8a1a6f1299e4f.tar.gz
GT5-Unofficial-0ac5e6c3606a7891a2ef6edf90a8a1a6f1299e4f.tar.bz2
GT5-Unofficial-0ac5e6c3606a7891a2ef6edf90a8a1a6f1299e4f.zip
Add debug uncertainty (#267)
* Add debug uncertainty * tier * recipe and text * Add debug uncertainty * tier * recipe and text * adjust recipe
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/github/technus/tectech/loader/recipe/ResearchStationAssemblyLine.java22
-rw-r--r--src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java5
-rw-r--r--src/main/java/com/github/technus/tectech/thing/CustomItemList.java1
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_CreativeUncertainty.java58
-rw-r--r--src/main/resources/assets/tectech/lang/en_US.lang2
5 files changed, 88 insertions, 0 deletions
diff --git a/src/main/java/com/github/technus/tectech/loader/recipe/ResearchStationAssemblyLine.java b/src/main/java/com/github/technus/tectech/loader/recipe/ResearchStationAssemblyLine.java
index aa55361e7c..ec96996f20 100644
--- a/src/main/java/com/github/technus/tectech/loader/recipe/ResearchStationAssemblyLine.java
+++ b/src/main/java/com/github/technus/tectech/loader/recipe/ResearchStationAssemblyLine.java
@@ -25,6 +25,7 @@ import static gregtech.api.enums.Mods.SuperSolarPanels;
import static gregtech.api.enums.Mods.Thaumcraft;
import static gregtech.api.enums.Mods.TinkersGregworks;
import static gregtech.api.util.GT_ModHandler.getModItem;
+import static gregtech.api.util.GT_RecipeBuilder.INGOTS;
import static gregtech.api.util.GT_RecipeBuilder.MINUTES;
import static gregtech.api.util.GT_RecipeBuilder.SECONDS;
@@ -1222,6 +1223,27 @@ public class ResearchStationAssemblyLine implements Runnable {
6000,
500000);
+ if (GTPlusPlus.isModLoaded()) {
+ // Debug uncertainty resolver
+ TT_recipeAdder.addResearchableAssemblylineRecipe(
+ CustomItemList.UncertaintyX_Hatch.get(1L),
+ 72_000_000,
+ 5_120,
+ 16_000_000,
+ 6,
+ new Object[] { CustomItemList.eM_Computer_Bus.get(1),
+ CustomItemList.hatch_CreativeMaintenance.get(1), ItemList.Field_Generator_UIV.get(1L),
+ GregtechItemList.Laser_Lens_Special.get(4),
+ new Object[] { OrePrefixes.circuit.get(Materials.Piko), 2 },
+ CustomItemList.DATApipe.get(64), CustomItemList.DATApipe.get(64),
+ ItemList.Cover_Screen.get(1) },
+ new FluidStack[] { Materials.Iridium.getMolten(INGOTS * 100), new FluidStack(solderUEV, 2592),
+ new FluidStack(ELEMENT.getInstance().NEPTUNIUM.getPlasma(), 20000),
+ new FluidStack(ELEMENT.getInstance().FERMIUM.getPlasma(), 20000) },
+ CustomItemList.hatch_CreativeUncertainty.get(1),
+ 200 * 20,
+ (int) TierEU.RECIPE_UIV);
+ }
}
private void itemPartsUHVAsslineRecipes() {
diff --git a/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java b/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java
index e0a373e67a..953306e9a4 100644
--- a/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java
+++ b/src/main/java/com/github/technus/tectech/loader/thing/MachineLoader.java
@@ -287,6 +287,7 @@ import static com.github.technus.tectech.thing.CustomItemList.eM_energyWirelessT
import static com.github.technus.tectech.thing.CustomItemList.eM_energyWirelessTunnel7_UXV;
import static com.github.technus.tectech.thing.CustomItemList.hatch_CreativeData;
import static com.github.technus.tectech.thing.CustomItemList.hatch_CreativeMaintenance;
+import static com.github.technus.tectech.thing.CustomItemList.hatch_CreativeUncertainty;
import static com.github.technus.tectech.thing.CustomItemList.holder_Hatch;
import static com.github.technus.tectech.thing.CustomItemList.rack_Hatch;
import static com.github.technus.tectech.util.CommonValues.V;
@@ -297,6 +298,7 @@ import net.minecraft.item.ItemStack;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_Capacitor;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_CreativeData;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_CreativeMaintenance;
+import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_CreativeUncertainty;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_DynamoMulti;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_DynamoTunnel;
import com.github.technus.tectech.thing.metaTileEntity.hatch.GT_MetaTileEntity_Hatch_EnergyMulti;
@@ -2234,6 +2236,9 @@ public class MachineLoader implements Runnable {
new GT_MetaTileEntity_DebugStructureWriter(15499, "debug.tt.writer", "Debug Structure Writer", 14)
.getStackForm(1L));
UnusedStuff.set(new ItemStack(Blocks.air));
+ hatch_CreativeUncertainty.set(
+ new GT_MetaTileEntity_Hatch_CreativeUncertainty(15510, "debug.tt.certain", "Uncertainty Resolution", 14)
+ .getStackForm(1));
// ===================================================================================================
// MetaTE init
diff --git a/src/main/java/com/github/technus/tectech/thing/CustomItemList.java b/src/main/java/com/github/technus/tectech/thing/CustomItemList.java
index 6f19d13a24..6195942221 100644
--- a/src/main/java/com/github/technus/tectech/thing/CustomItemList.java
+++ b/src/main/java/com/github/technus/tectech/thing/CustomItemList.java
@@ -51,6 +51,7 @@ public enum CustomItemList implements IItemContainer {
hatch_CreativeMaintenance,
hatch_CreativeData,
+ hatch_CreativeUncertainty,
Machine_OwnerDetector,
Machine_BuckConverter_IV,
Machine_BuckConverter_LuV,
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_CreativeUncertainty.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_CreativeUncertainty.java
new file mode 100644
index 0000000000..11828298d7
--- /dev/null
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/hatch/GT_MetaTileEntity_Hatch_CreativeUncertainty.java
@@ -0,0 +1,58 @@
+package com.github.technus.tectech.thing.metaTileEntity.hatch;
+
+import static net.minecraft.util.StatCollector.translateToLocal;
+
+import net.minecraft.util.EnumChatFormatting;
+
+import com.github.technus.tectech.util.CommonValues;
+
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+
+public class GT_MetaTileEntity_Hatch_CreativeUncertainty extends GT_MetaTileEntity_Hatch_Uncertainty {
+
+ public GT_MetaTileEntity_Hatch_CreativeUncertainty(int aID, String aName, String aNameRegional, int aTier) {
+ super(aID, aName, aNameRegional, aTier);
+ }
+
+ public GT_MetaTileEntity_Hatch_CreativeUncertainty(String aName, int aTier, String[] aDescription,
+ ITexture[][][] aTextures) {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ @Override
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity iGregTechTileEntity) {
+ return new GT_MetaTileEntity_Hatch_CreativeUncertainty(mName, mTier, mDescriptionArray, mTextures);
+ }
+
+ @Override
+ public String[] getDescription() {
+ return new String[] { CommonValues.TEC_MARK_EM, translateToLocal("gt.blockmachines.debug.tt.certain.desc.0"), // Feeling
+ // certain,
+ // for
+ // sure
+ EnumChatFormatting.AQUA.toString() + EnumChatFormatting.BOLD
+ + translateToLocal("gt.blockmachines.debug.tt.certain.desc.1") // Schrödinger's cat escaped the
+ // box
+ };
+ }
+
+ @Override
+ public void regenerate() {
+ // no-op
+ }
+
+ @Override
+ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
+ if (aBaseMetaTileEntity.isServerSide() && (aTick % 100) == 0) {
+ if (mode == 0) {
+ aBaseMetaTileEntity.setActive(false);
+ status = -128;
+ } else {
+ aBaseMetaTileEntity.setActive(true);
+ compute();
+ }
+ }
+ }
+}
diff --git a/src/main/resources/assets/tectech/lang/en_US.lang b/src/main/resources/assets/tectech/lang/en_US.lang
index ea7e870d6c..7729cc63c5 100644
--- a/src/main/resources/assets/tectech/lang/en_US.lang
+++ b/src/main/resources/assets/tectech/lang/en_US.lang
@@ -963,6 +963,8 @@ gt.blockmachines.debug.tt.writer.name=Debug Structure Writer
gt.blockmachines.debug.tt.writer.desc.0=Scans Blocks Around
gt.blockmachines.debug.tt.writer.desc.1=Prints Multiblock NonTE structure check code
gt.blockmachines.debug.tt.writer.desc.2=ABC axises aligned to machine front
+gt.blockmachines.debug.tt.certain.desc.0=Feeling certain, for sure
+gt.blockmachines.debug.tt.certain.desc.1=Schrödinger's cat escaped the box
GT5U.gui.text.computing=§aComputing
GT5U.gui.text.providing_data=§aProviding Data