This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit * Graviton Modulation Casings * It forms * testing cursed things, will rework soon * test better recipe check * get rid of cursed stuff * fix OC * parameter shenanigans * fuel input hatch * redo fuel drain * fluid output * add blocks * run on preload * dependency bump * preliminary structure works * fix some misc things * New class * Fix build issue * 1 hatch * Cleaning up code with seperate class for structure string * start on modules * Spotless + Smelting Module Class + BaseModule Changes * Remove useless import * ... * protected * trying module things * add checkRecipe, remove some redundant stuff * Initial commit * Graviton Modulation Casings * It forms * testing cursed things, will rework soon * test better recipe check * get rid of cursed stuff * fix OC * parameter shenanigans * fuel input hatch * redo fuel drain * fluid output * add blocks * run on preload * preliminary structure works * fix some misc things * New class * 1 hatch * start on modules * Fix build issue * Cleaning up code with seperate class for structure string * Spotless + Smelting Module Class + BaseModule Changes * Remove useless import * protected * trying module things * add checkRecipe, remove some redundant stuff * ... * New Classes + Modules * Recipe Maps * fix deps * recipe map fixes * make modules connect * spotless * remove recipe functionality + misc cleanup * parallel parameter * remove unneeded check * fix item to fluid conversion + remove parameter * outputs appear now * remove parallel param * improve scanner info * parameter adjustment + add onRemoval * parameter followup * plasma module (almost) fully works * attempt at fixing param * Fixes & stuff * Recommendation fixes * tooltip upgrade * Spotless for clean * plasma recipe map * recipe adder * first recipes * use new recipe map * Recipe map change stuff * recipe map fixes * some quick fixes * Spotless * fix null checks * batch size * add input separation * add batch mode parameter and functionality * spotless * first recipe addition loops * start on ui (add button) * spotless * add rendering block * render tile * more rendering * summon render block * spotless again * greyscale * lighter * why is rendering a pain * fix merge conflicts * is this the conflict? * spotless * merge conflict again :pensib: * start on upgrade gui * more upgrade gui things * saving * resolve merge conflicts & crashes * redo added blocks + add new ones + some tooltip stuff * more tooltip stuff * one more casing * forgot this * redo module processing logic * migrate to wirelessNetworkManager * quark gluon -> exotic * forgot achievements * adjust plasma module recipemap to prepare for upgrades * migrate to nice mui gui * some more plasma recipemap changes * eve more plasma recipemap changes, yay * everyone loves plasma recipemap changes * they never end, do they * exotic module recipes (wip) * exotic module recipe processing (mostly works) * prevent duplicate materials * make input sizes random * fix gt++ material conversions * nbt data things * start on magmatter mode + misc stuff * more magmatter work * no need for putIfAbsent + added awdr and runite * load recipemap from nbt * getFluidsStored -> inputFluids * add upgrades and make them scrollable * assign window colors to upgrades * green background * green background * redo upgrade IDs and add boolean array for storing whether they are active * implement system to restrict the order which upgrades can be bought in * add split functionality * switch to constants * reset button tooltip + change texture of upgrade if active * some cleanup + new fuel config * button BGs, altered power switch + localisation * fuel config window + save everything to nbt + random stuff * new helper class + fuel calculations * heat calculations + some molten module logic adjustments * more calculations, fuel hatch removal, transfer values to modules, internal fuel battery * use values in module processing * switch to UUID * switch to numericWidget * fix speedbonus being infinite sometimes * move method over to godforgeMath + very minor exotic module changes * remove this so it actually loads * new texture * switch to processInitialSettings * remove wireless energy things * add furnace mode * mode localisation * remove author tag * scala bad (switch away from scala arrays) * nuke all star imports (& godforge recipemap) * minor wording changes * add mod checks * mod check * revert star textures * return widget * dont return object types * forgot I even enabled debug, whoops * remove unnecessary GL11 calls --------- Co-authored-by: TheEpicGamer274 <[email protected]> Co-authored-by: GTNH-Colen <[email protected]> Co-authored-by: BlueWeabo <[email protected]>
- Loading branch information
1 parent
5d8119a
commit b03e638
Showing
57 changed files
with
7,449 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
428 changes: 428 additions & 0 deletions
428
src/main/java/com/github/technus/tectech/loader/recipe/Godforge.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/com/github/technus/tectech/loader/thing/MuTeLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.github.technus.tectech.loader.thing; | ||
|
||
import com.github.technus.tectech.TecTech; | ||
|
||
public class MuTeLoader implements Runnable { | ||
|
||
@Override | ||
public void run() { | ||
TecTech.LOGGER.info("TecTech: Registering MultiTileEntities"); | ||
registerMachines(); | ||
registerCasings(); | ||
} | ||
|
||
private static void registerMachines() { | ||
|
||
} | ||
|
||
private static void registerCasings() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/main/java/com/github/technus/tectech/recipe/GodforgeExoticFrontend.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package com.github.technus.tectech.recipe; | ||
|
||
import static gregtech.api.util.GT_Utility.trans; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
import javax.annotation.ParametersAreNonnullByDefault; | ||
|
||
import com.gtnewhorizons.modularui.api.math.Pos2d; | ||
|
||
import gregtech.api.recipe.BasicUIPropertiesBuilder; | ||
import gregtech.api.recipe.NEIRecipePropertiesBuilder; | ||
import gregtech.api.recipe.RecipeMapFrontend; | ||
import gregtech.api.util.GT_Utility; | ||
import gregtech.api.util.MethodsReturnNonnullByDefault; | ||
import gregtech.nei.RecipeDisplayInfo; | ||
|
||
@ParametersAreNonnullByDefault | ||
@MethodsReturnNonnullByDefault | ||
public class GodforgeExoticFrontend extends RecipeMapFrontend { | ||
|
||
public GodforgeExoticFrontend(BasicUIPropertiesBuilder uiPropertiesBuilder, | ||
NEIRecipePropertiesBuilder neiPropertiesBuilder) { | ||
super(uiPropertiesBuilder, neiPropertiesBuilder); | ||
} | ||
|
||
@Override | ||
public List<Pos2d> getItemInputPositions(int itemInputCount) { | ||
return Collections.singletonList(new Pos2d(52, 33)); | ||
} | ||
|
||
@Override | ||
public List<Pos2d> getItemOutputPositions(int itemOutputCount) { | ||
return Collections.singletonList(new Pos2d(106, 33)); | ||
} | ||
|
||
@Override | ||
protected void drawEnergyInfo(RecipeDisplayInfo recipeInfo) { | ||
long eut = recipeInfo.recipe.mEUt; | ||
long duration = recipeInfo.recipe.mDuration; | ||
recipeInfo.drawText(trans("152", "Total: ") + GT_Utility.formatNumbers(eut * duration) + " EU"); | ||
recipeInfo.drawText(trans("153", "Usage: ") + GT_Utility.formatNumbers(eut) + " EU/t"); | ||
recipeInfo.drawText(trans("158", "Time: ") + GT_Utility.formatNumbers(duration / 20) + " secs"); | ||
|
||
} | ||
|
||
@Override | ||
protected void drawDurationInfo(RecipeDisplayInfo recipeInfo) {} | ||
|
||
} |
64 changes: 64 additions & 0 deletions
64
src/main/java/com/github/technus/tectech/recipe/GodforgePlasmaFrontend.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package com.github.technus.tectech.recipe; | ||
|
||
import static gregtech.api.util.GT_Utility.trans; | ||
import static net.minecraft.util.StatCollector.translateToLocal; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
import javax.annotation.ParametersAreNonnullByDefault; | ||
|
||
import com.gtnewhorizons.modularui.api.math.Pos2d; | ||
|
||
import gregtech.api.recipe.BasicUIPropertiesBuilder; | ||
import gregtech.api.recipe.NEIRecipePropertiesBuilder; | ||
import gregtech.api.recipe.RecipeMapFrontend; | ||
import gregtech.api.util.GT_Utility; | ||
import gregtech.api.util.MethodsReturnNonnullByDefault; | ||
import gregtech.nei.RecipeDisplayInfo; | ||
|
||
@ParametersAreNonnullByDefault | ||
@MethodsReturnNonnullByDefault | ||
public class GodforgePlasmaFrontend extends RecipeMapFrontend { | ||
|
||
public GodforgePlasmaFrontend(BasicUIPropertiesBuilder uiPropertiesBuilder, | ||
NEIRecipePropertiesBuilder neiPropertiesBuilder) { | ||
super(uiPropertiesBuilder, neiPropertiesBuilder); | ||
} | ||
|
||
@Override | ||
public List<Pos2d> getItemInputPositions(int itemInputCount) { | ||
return Collections.singletonList(new Pos2d(52, 33)); | ||
} | ||
|
||
@Override | ||
public List<Pos2d> getItemOutputPositions(int itemOutputCount) { | ||
return Collections.singletonList(new Pos2d(106, 33)); | ||
} | ||
|
||
@Override | ||
protected void drawEnergyInfo(RecipeDisplayInfo recipeInfo) { | ||
long eut = recipeInfo.recipe.mEUt; | ||
long duration = recipeInfo.recipe.mDuration; | ||
String multistep = "No"; | ||
if (recipeInfo.recipe.mSpecialItems.toString().equals("true")) { | ||
multistep = "Yes"; | ||
} | ||
String requiredUpgrade = switch (recipeInfo.recipe.mSpecialValue) { | ||
case 1 -> "T4-T5"; | ||
case 2 -> "Exotic"; | ||
default -> "T1-T3"; | ||
}; | ||
|
||
recipeInfo.drawText(trans("152", "Total: ") + GT_Utility.formatNumbers(eut * duration) + " EU"); | ||
recipeInfo.drawText(trans("153", "Usage: ") + GT_Utility.formatNumbers(eut) + " EU/t"); | ||
recipeInfo.drawText(trans("158", "Time: ") + GT_Utility.formatNumbers(duration / 20) + " secs"); | ||
recipeInfo.drawText(translateToLocal("gt.blockmachines.multimachine.FOG.plasmamultistep") + ": " + multistep); | ||
recipeInfo.drawText( | ||
translateToLocal("gt.blockmachines.multimachine.FOG.plasmarecipetier") + ": " + requiredUpgrade); | ||
} | ||
|
||
@Override | ||
protected void drawDurationInfo(RecipeDisplayInfo recipeInfo) {} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.