Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 5846cc8

Browse files
committed
change lasers to the final™ teiring
1 parent cdbe38e commit 5846cc8

File tree

7 files changed

+48
-12
lines changed

7 files changed

+48
-12
lines changed

src/main/java/net/htmlcsjs/htmlTech/api/unification/materials/HTMaterials.java

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package net.htmlcsjs.htmlTech.api.unification.materials;
22

3-
import gregtech.api.GTValues;
43
import gregtech.api.unification.material.Material;
54
import gregtech.api.unification.material.info.MaterialFlag;
65
import gregtech.api.unification.material.properties.PropertyKey;
76

7+
import static gregtech.api.GTValues.*;
88
import static gregtech.api.unification.material.Materials.*;
99
import static gregtech.api.unification.material.info.MaterialFlags.*;
1010
import static gregtech.api.unification.material.info.MaterialIconSet.SHINY;
@@ -14,6 +14,7 @@ public class HTMaterials {
1414
/* Clamed Range 21000 to 21499 */
1515
// Materials
1616
public static Material FlOPPa;
17+
public static Material NaquadriaTetratrinite;
1718

1819
// Flags
1920
public static final MaterialFlag GENERATE_LASER;
@@ -35,9 +36,24 @@ public static void register() {
3536
.toolStats(128, 50, 2621440, 128)
3637
.build();
3738

39+
NaquadriaTetratrinite = new Material.Builder(21001, "naquadria_tetratrinite")
40+
.fluid(Material.FluidType.GAS).fluidTemp(32012)
41+
.components(Naquadria, 1, Trinium, 4)
42+
.flags(DECOMPOSITION_BY_CENTRIFUGING)
43+
.color(0x560909)
44+
.build();
45+
46+
3847
// Adding Properties to Materials
39-
Diamond.setProperty(LASER, new LaserProperties((int) GTValues.V[5], 128, 2));
40-
Ruby.setProperty(LASER, new LaserProperties((int) GTValues.V[6], 256, 2));
48+
CarbonDioxide.setProperty(LASER, new LaserProperties(V[IV], 256));
49+
Helium.setProperty(LASER, new LaserProperties(V[LuV], 256));
50+
Neon.setProperty(LASER, new LaserProperties(V[ZPM], 256));
51+
Argon.setProperty(LASER, new LaserProperties(V[UV], 256));
52+
Krypton.setProperty(LASER, new LaserProperties(V[IV], 1024));
53+
Xenon.setProperty(LASER, new LaserProperties(V[LuV], 1024));
54+
Radon.setProperty(LASER, new LaserProperties(V[ZPM], 1024));
55+
NaquadriaTetratrinite.setProperty(LASER, new LaserProperties(V[UV], 1024));
56+
4157

4258
// Adding Flags to Materials
4359
Protactinium.setHidden(false);
@@ -47,6 +63,7 @@ public static void register() {
4763
Titanium.addFlags(GENERATE_FOIL);
4864
Darmstadtium.addFlags(GENERATE_FOIL);
4965
UraniumRhodiumDinaquadide.addFlags(GENERATE_SPRING);
66+
5067
}
5168

5269
public static void init() {

src/main/java/net/htmlcsjs/htmlTech/api/unification/materials/HTOrePrefix.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ private static void initLasers() {
2828
laser = new OrePrefix("laser", -1, null, laserIcon, ENABLE_UNIFICATION, material -> material.hasProperty(LASER), material -> {
2929
List<String> textList = new ArrayList<String>();
3030

31-
int voltage = material.getProperty(LASER).voltage;
32-
int amperage = material.getProperty(LASER).amperage;
31+
long voltage = material.getProperty(LASER).voltage;
32+
long amperage = material.getProperty(LASER).amperage;
3333

3434
textList.add(I18n.format("htmltech.laser.voltage", voltage, GTValues.VNF[(GTUtility.getTierByVoltage(voltage))]));
3535
textList.add(I18n.format("htmltech.laser.amperage", amperage));

src/main/java/net/htmlcsjs/htmlTech/api/unification/materials/LaserProperties.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,28 @@
88

99
public class LaserProperties implements IMaterialProperty<LaserProperties> {
1010

11-
public final int voltage;
12-
public final int amperage;
11+
public final long voltage;
12+
public final long amperage;
1313
public final double efficiency;
1414

15-
public LaserProperties(int voltage, int amperage, double efficiency) {
15+
public LaserProperties(long voltage, long amperage, double efficiency) {
1616
this.voltage = voltage;
1717
this.amperage = amperage;
1818
this.efficiency = efficiency;
1919
}
2020

21+
public LaserProperties(long voltage, long amperage) {
22+
this(voltage, amperage, 1.0);
23+
}
24+
2125
/**
2226
* Default values constructor
2327
*/
2428
public LaserProperties() { this(32, 128, 0.2); }
2529

2630
@Override
2731
public void verifyProperty(MaterialProperties materialProperties) {
28-
materialProperties.ensureSet(PropertyKey.GEM);
32+
materialProperties.ensureSet(PropertyKey.FLUID);
2933
}
3034

3135
@Override

src/main/java/net/htmlcsjs/htmlTech/common/item/behaviors/LaserInspectorToolBehaviour.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private String getLaserVoltage() {
6969
return I18n.format("metaitem.tool.laser.inspector.gui.not_laser");
7070
} else {
7171
Material material = GregTechAPI.MATERIAL_REGISTRY.getObjectById(laserItem.getDamage(laserInventory.getStackInSlot(0)));
72-
int voltage = material.getProperty(LASER).voltage;
72+
long voltage = material.getProperty(LASER).voltage;
7373
return I18n.format("htmltech.laser.voltage", voltage, GTValues.VN[(GTUtility.getTierByVoltage(voltage))]);
7474
}
7575
}
@@ -80,7 +80,7 @@ private String getLaserAmperage() {
8080
return "";
8181
} else {
8282
Material material = GregTechAPI.MATERIAL_REGISTRY.getObjectById(laserItem.getDamage(laserInventory.getStackInSlot(0)));
83-
int amperage = material.getProperty(LASER).amperage;
83+
long amperage = material.getProperty(LASER).amperage;
8484
return I18n.format("htmltech.laser.amperage", amperage);
8585
}
8686
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
package net.htmlcsjs.htmlTech.loaders.recipe;
22

3+
import static gregtech.api.GTValues.*;
34
import static gregtech.api.recipes.RecipeMaps.MIXER_RECIPES;
45
import static gregtech.api.unification.material.Materials.*;
56
import static gregtech.api.unification.ore.OrePrefix.dust;
67
import static net.htmlcsjs.htmlTech.api.unification.materials.HTMaterials.FlOPPa;
8+
import static net.htmlcsjs.htmlTech.api.unification.materials.HTMaterials.NaquadriaTetratrinite;
79

810
public class MaterialLoader {
911
public static void init() {
10-
MIXER_RECIPES.recipeBuilder().EUt(122880).duration(200)
12+
MIXER_RECIPES.recipeBuilder().EUt(VA[ZPM]).duration(200)
1113
.input(dust, Flerovium, 1)
1214
.fluidInputs(Oxygen.getFluid(1000))
1315
.input(dust, Phosphorus, 1)
1416
.input(dust, Protactinium, 1)
1517
.output(dust, FlOPPa, 4)
1618
.buildAndRegister();
19+
20+
MIXER_RECIPES.recipeBuilder().EUt(VA[UV]).duration(2000)
21+
.fluidInputs(Naquadria.getFluid(20), Trinium.getFluid(80))
22+
.fluidOutputs(NaquadriaTetratrinite.getFluid(100))
23+
.buildAndRegister();
1724
}
1825
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"parent": "item/generated",
3+
"textures": {
4+
"layer0": "gregtech:items/material_sets/dull/laser",
5+
"layer1": "gregtech:items/material_sets/dull/laser_overlay"
6+
}
7+
}

src/main/resources/assets/htmltech/lang/en_us.lang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ tile.htmltech_casing.naq_alloy_casing.name=Resistant Naquadah Alloy Casing
3232

3333
item.material.oreprefix.laser=%s Laser
3434
material.floppa=FlOPPa
35+
material.naquadria_tetratrinite=Naquadria Tetratrinite

0 commit comments

Comments
 (0)