-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Platinum, Rhodium chains, GTCEu electrolysis total removal (#22)
* replaced electrolysis platinum groupe sludge separation by chemical bath/centrifuge recipes * almost finished rhodium chain, added config * finished rhodium chain * several fixes, removed useless GTCEu recipeMaps modification * several fixes, removed electrolyzer, recipemap * added sodium nitrite recipes * updated changelog
- Loading branch information
Showing
17 changed files
with
361 additions
and
25 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
58 changes: 58 additions & 0 deletions
58
...n/java/tkcy/simpleaddon/api/unification/materials/chains/PlatinumGroupChainMaterials.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,58 @@ | ||
package tkcy.simpleaddon.api.unification.materials.chains; | ||
|
||
import static gregtech.api.unification.material.Materials.*; | ||
import static gregtech.api.util.GTUtility.gregtechId; | ||
import static tkcy.simpleaddon.api.unification.materials.TKCYSAMaterials.*; | ||
|
||
import gregtech.api.fluids.FluidBuilder; | ||
import gregtech.api.fluids.attribute.FluidAttributes; | ||
import gregtech.api.unification.material.Material; | ||
import gregtech.api.unification.material.info.MaterialFlags; | ||
|
||
public class PlatinumGroupChainMaterials { | ||
|
||
public static int register(int startId) { | ||
TreatedPlatinumGroupSludge = new Material.Builder(startId++, | ||
gregtechId("treated_platinum_group_sludge")) | ||
.liquid(new FluidBuilder().attributes(FluidAttributes.ACID)) | ||
.components(PlatinumGroupSludge, 5, AquaRegia, 1) | ||
.colorAverage() | ||
.build(); | ||
TreatedPlatinumGroupSludge.setFormula(""); | ||
|
||
RhodiumHydroxide = new Material.Builder(startId++, gregtechId("rhodium_hydroxide")) | ||
.dust() | ||
.fluid() | ||
.components(Rhodium, 1, Oxygen, 2, Hydrogen, 2) | ||
.colorAverage() | ||
.build(); | ||
RhodiumHydroxide.setFormula("Rh(OH)2", true); | ||
|
||
ChlororhodicAcid = new Material.Builder(startId++, gregtechId("chlororhodic_acid")) | ||
.liquid(new FluidBuilder().attributes(FluidAttributes.ACID)) | ||
.components(Hydrogen, 3, Rhodium, 1, Chlorine, 6) | ||
.colorAverage() | ||
.build(); | ||
|
||
RhodiumPrecipitate = new Material.Builder(startId++, gregtechId("rhodium_precipitate")) | ||
.dust() | ||
.color(0x8c2222) | ||
.build(); | ||
RhodiumPrecipitate.setFormula("Rh?"); | ||
|
||
TreatedRhodiumPrecipitate = new Material.Builder(startId++, gregtechId("treated_rhodium_precipitate")) | ||
.liquid(new FluidBuilder().attributes(FluidAttributes.ACID)) | ||
.components(RhodiumPrecipitate, 1, HydrochloricAcid, 4) | ||
.colorAverage() | ||
.build(); | ||
|
||
HotRhodium = new Material.Builder(startId++, gregtechId("rhodium_hot")) | ||
.liquid(new FluidBuilder().temperature(1500)) | ||
.flags(MaterialFlags.DISABLE_DECOMPOSITION) | ||
.components(Rhodium, 1) | ||
.colorAverage() | ||
.build(); | ||
|
||
return startId; | ||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
src/main/java/tkcy/simpleaddon/api/unification/materials/other/Chemicals.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,33 @@ | ||
package tkcy.simpleaddon.api.unification.materials.other; | ||
|
||
import static gregtech.api.unification.material.Materials.*; | ||
import static gregtech.api.util.GTUtility.gregtechId; | ||
import static tkcy.simpleaddon.api.unification.materials.TKCYSAMaterials.*; | ||
|
||
import gregtech.api.fluids.FluidBuilder; | ||
import gregtech.api.unification.material.Material; | ||
|
||
public class Chemicals { | ||
|
||
public static int register(int startId) { | ||
SodiumNitrite = new Material.Builder(startId++, gregtechId("sodium_nitrite")) | ||
.dust() | ||
.components(Sodium, 1, Nitrogen, 1, Oxygen, 2) | ||
.colorAverage() | ||
.build(); | ||
|
||
SodiumNitriteSolution = new Material.Builder(startId++, gregtechId("sodium_nitrite_solution")) | ||
.fluid() | ||
.components(SodiumNitrite, 1, Water, 1) | ||
.colorAverage() | ||
.build(); | ||
|
||
LiquidDinitrogenTrioxide = new Material.Builder(startId++, gregtechId("liquid_dinitrogen_trioxide")) | ||
.liquid(new FluidBuilder().temperature(140)) | ||
.components(Nitrogen, 2, Oxygen, 3) | ||
.colorAverage() | ||
.build(); | ||
|
||
return startId; | ||
} | ||
} |
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
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
Empty file.
27 changes: 27 additions & 0 deletions
27
src/main/java/tkcy/simpleaddon/integration/jei/Removals.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,27 @@ | ||
package tkcy.simpleaddon.integration.jei; | ||
|
||
import java.util.Arrays; | ||
import java.util.Objects; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import gregtech.api.metatileentity.MetaTileEntity; | ||
import gregtech.common.metatileentities.MetaTileEntities; | ||
|
||
import mezz.jei.api.*; | ||
import mezz.jei.api.ingredients.IIngredientBlacklist; | ||
|
||
@JEIPlugin | ||
public class Removals implements IModPlugin { | ||
|
||
@Override | ||
public void register(@NotNull IModRegistry registry) { | ||
IJeiHelpers jeiHelpers = registry.getJeiHelpers(); | ||
IIngredientBlacklist ingredientBlacklist = jeiHelpers.getIngredientBlacklist(); | ||
|
||
Arrays.stream(MetaTileEntities.ELECTROLYZER) | ||
.filter(Objects::nonNull) | ||
.map(MetaTileEntity::getStackForm) | ||
.forEach(ingredientBlacklist::addIngredientToBlacklist); | ||
} | ||
} |
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.