Skip to content

Commit ccf5b8a

Browse files
committed
Switch over all our uses of new Material.builder()
1 parent 9d9ec4d commit ccf5b8a

File tree

8 files changed

+616
-616
lines changed

8 files changed

+616
-616
lines changed

src/main/java/gregtech/api/unification/material/materials/ElementMaterials.java

Lines changed: 132 additions & 132 deletions
Large diffs are not rendered by default.

src/main/java/gregtech/api/unification/material/materials/FirstDegreeMaterials.java

Lines changed: 200 additions & 200 deletions
Large diffs are not rendered by default.

src/main/java/gregtech/api/unification/material/materials/HigherDegreeMaterials.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@
1515
public class HigherDegreeMaterials {
1616

1717
public static void register() {
18-
Electrotine = new Material.Builder(2507, gregtechId("electrotine"))
18+
Electrotine = Material.builder(2507, gregtechId("electrotine"))
1919
.dust().ore(5, 1, true)
2020
.color(0x3CB4C8).iconSet(SHINY)
2121
.flags(DISABLE_DECOMPOSITION)
2222
.components(Redstone, 1, Electrum, 1)
2323
.build();
2424

25-
EnderEye = new Material.Builder(2508, gregtechId("ender_eye"))
25+
EnderEye = Material.builder(2508, gregtechId("ender_eye"))
2626
.gem(1)
2727
.color(0x66FF66)
2828
.flags(GENERATE_PLATE, NO_SMASHING, NO_SMELTING, DECOMPOSITION_BY_CENTRIFUGING)
2929
.build();
3030

31-
Diatomite = new Material.Builder(2509, gregtechId("diatomite"))
31+
Diatomite = Material.builder(2509, gregtechId("diatomite"))
3232
.dust(1).ore()
3333
.color(0xE1E1E1)
3434
.components(Flint, 8, BandedIron, 1, Sapphire, 1)
3535
.build();
3636

37-
RedSteel = new Material.Builder(2510, gregtechId("red_steel"))
37+
RedSteel = Material.builder(2510, gregtechId("red_steel"))
3838
.ingot(3).fluid()
3939
.color(0x8C6464).iconSet(METALLIC)
4040
.flags(EXT_METAL, GENERATE_GEAR)
@@ -44,7 +44,7 @@ public static void register() {
4444
.blast(b -> b.temp(1813, GasTier.LOW).blastStats(VA[HV], 1000))
4545
.build();
4646

47-
BlueSteel = new Material.Builder(2511, gregtechId("blue_steel"))
47+
BlueSteel = Material.builder(2511, gregtechId("blue_steel"))
4848
.ingot(3).fluid()
4949
.color(0x64648C).iconSet(METALLIC)
5050
.flags(EXT_METAL, GENERATE_FRAME, GENERATE_GEAR)
@@ -54,35 +54,35 @@ public static void register() {
5454
.blast(b -> b.temp(1813, GasTier.LOW).blastStats(VA[HV], 1000))
5555
.build();
5656

57-
Basalt = new Material.Builder(2512, gregtechId("basalt"))
57+
Basalt = Material.builder(2512, gregtechId("basalt"))
5858
.dust(1)
5959
.color(0x3C3232).iconSet(ROUGH)
6060
.flags(NO_SMASHING, DECOMPOSITION_BY_CENTRIFUGING)
6161
.components(Olivine, 1, Calcite, 3, Flint, 8, DarkAsh, 4)
6262
.build();
6363

64-
GraniticMineralSand = new Material.Builder(2513, gregtechId("granitic_mineral_sand"))
64+
GraniticMineralSand = Material.builder(2513, gregtechId("granitic_mineral_sand"))
6565
.dust(1).ore()
6666
.color(0x283C3C).iconSet(SAND)
6767
.components(Magnetite, 1, GraniteBlack, 1)
6868
.flags(BLAST_FURNACE_CALCITE_DOUBLE)
6969
.build();
7070

71-
Redrock = new Material.Builder(2514, gregtechId("redrock"))
71+
Redrock = Material.builder(2514, gregtechId("redrock"))
7272
.dust(1)
7373
.color(0xFF5032).iconSet(ROUGH)
7474
.flags(NO_SMASHING, DECOMPOSITION_BY_CENTRIFUGING)
7575
.components(Calcite, 2, Flint, 1)
7676
.build();
7777

78-
GarnetSand = new Material.Builder(2515, gregtechId("garnet_sand"))
78+
GarnetSand = Material.builder(2515, gregtechId("garnet_sand"))
7979
.dust(1).ore()
8080
.color(0xC86400).iconSet(SAND)
8181
.flags(DECOMPOSITION_BY_CENTRIFUGING)
8282
.components(Almandine, 1, Andradite, 1, Grossular, 1, Pyrope, 1, Spessartine, 1, Uvarovite, 1)
8383
.build();
8484

85-
HSSG = new Material.Builder(2516, gregtechId("hssg"))
85+
HSSG = Material.builder(2516, gregtechId("hssg"))
8686
.ingot(3).fluid()
8787
.color(0x999900).iconSet(METALLIC)
8888
.flags(EXT2_METAL, GENERATE_SMALL_GEAR, GENERATE_FRAME, GENERATE_SPRING, GENERATE_FINE_WIRE,
@@ -96,7 +96,7 @@ public static void register() {
9696
.vacuumStats(VA[HV]))
9797
.build();
9898

99-
RedAlloy = new Material.Builder(2517, gregtechId("red_alloy"))
99+
RedAlloy = Material.builder(2517, gregtechId("red_alloy"))
100100
.ingot(0)
101101
.liquid(new FluidBuilder().temperature(1400))
102102
.color(0xC80000)
@@ -105,14 +105,14 @@ public static void register() {
105105
.cableProperties(V[ULV], 1, 0)
106106
.build();
107107

108-
BasalticMineralSand = new Material.Builder(2518, gregtechId("basaltic_mineral_sand"))
108+
BasalticMineralSand = Material.builder(2518, gregtechId("basaltic_mineral_sand"))
109109
.dust(1).ore()
110110
.color(0x283228).iconSet(SAND)
111111
.components(Magnetite, 1, Basalt, 1)
112112
.flags(BLAST_FURNACE_CALCITE_DOUBLE)
113113
.build();
114114

115-
HSSE = new Material.Builder(2519, gregtechId("hsse"))
115+
HSSE = Material.builder(2519, gregtechId("hsse"))
116116
.ingot(4).fluid()
117117
.color(0x336600).iconSet(METALLIC)
118118
.flags(EXT2_METAL, GENERATE_FRAME, GENERATE_RING, GENERATE_GEAR)
@@ -126,7 +126,7 @@ public static void register() {
126126
.vacuumStats(VA[HV]))
127127
.build();
128128

129-
HSSS = new Material.Builder(2520, gregtechId("hsss"))
129+
HSSS = Material.builder(2520, gregtechId("hsss"))
130130
.ingot(4).fluid()
131131
.color(0x660033).iconSet(METALLIC)
132132
.flags(EXT2_METAL, GENERATE_SMALL_GEAR, GENERATE_RING, GENERATE_FRAME, GENERATE_ROTOR, GENERATE_ROUND,
@@ -141,42 +141,42 @@ public static void register() {
141141

142142
// FREE ID: 2521
143143

144-
IridiumMetalResidue = new Material.Builder(2522, gregtechId("iridium_metal_residue"))
144+
IridiumMetalResidue = Material.builder(2522, gregtechId("iridium_metal_residue"))
145145
.dust()
146146
.color(0x5C5D68).iconSet(METALLIC)
147147
.flags(DISABLE_DECOMPOSITION)
148148
.components(Iridium, 1, Chlorine, 3, PlatinumSludgeResidue, 1)
149149
.build();
150150

151-
Granite = new Material.Builder(2523, gregtechId("granite"))
151+
Granite = Material.builder(2523, gregtechId("granite"))
152152
.dust()
153153
.color(0xCFA18C).iconSet(ROUGH)
154154
.flags(DECOMPOSITION_BY_CENTRIFUGING)
155155
.components(SiliconDioxide, 4, Redrock, 1)
156156
.build();
157157

158-
Brick = new Material.Builder(2524, gregtechId("brick"))
158+
Brick = Material.builder(2524, gregtechId("brick"))
159159
.dust()
160160
.color(0x9B5643).iconSet(ROUGH)
161161
.flags(EXCLUDE_BLOCK_CRAFTING_RECIPES, NO_SMELTING, DECOMPOSITION_BY_CENTRIFUGING)
162162
.components(Clay, 1)
163163
.build();
164164

165-
Fireclay = new Material.Builder(2525, gregtechId("fireclay"))
165+
Fireclay = Material.builder(2525, gregtechId("fireclay"))
166166
.dust()
167167
.color(0xADA09B).iconSet(ROUGH)
168168
.flags(DECOMPOSITION_BY_CENTRIFUGING, NO_SMELTING)
169169
.components(Clay, 1, Brick, 1)
170170
.build();
171171

172-
Diorite = new Material.Builder(2526, gregtechId("diorite"))
172+
Diorite = Material.builder(2526, gregtechId("diorite"))
173173
.dust()
174174
.iconSet(ROUGH)
175175
.flags(DECOMPOSITION_BY_CENTRIFUGING)
176176
.components(Mirabilite, 2, Clay, 7)
177177
.build();
178178

179-
BlueAlloy = new Material.Builder(2527, gregtechId("blue_alloy"))
179+
BlueAlloy = Material.builder(2527, gregtechId("blue_alloy"))
180180
.ingot()
181181
.liquid(new FluidBuilder().temperature(1400))
182182
.color(0x64B4FF).iconSet(DULL)

0 commit comments

Comments
 (0)