Skip to content

Commit 76bd21e

Browse files
committed
Changed to GTFluids. and to () -> rather than ::
1 parent c4745e5 commit 76bd21e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/content/Modpacks/Materials-and-Elements/TagPrefixes-and-the-power-of-.setIgnored().md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ material is custom, this is done using `GTCEuStartupEvents.registry()`, as depic
8282

8383
Fluids are treated differently to items, their inclusion in a material is a property rather than a TagPrefix or MaterialFlag.
8484
This makes replacing the fluid of a material with a fluid that you or another mod have created require a different approach than setIgnored.
85-
This is done using `handleNonMaterialFluids()` which can be found in the [``GTFluids`` class](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/common/data/GTFluids.java)
85+
The way to do this is using `GTFluids.handleNonMaterialFluids()` which can be found in the [``GTFluids`` class](https://github.com/GregTechCEu/GregTech-Modern/blob/1.20.1/src/main/java/com/gregtechceu/gtceu/common/data/GTFluids.java)
8686

87-
`.handleNonMaterialFluids()` takes in a `Material` and a `Fluid` or `Supplier<Fluid>` to replace the liquid of the material with the provided fluid.
87+
`GTFluids.handleNonMaterialFluids()` takes in a `Material` and a `Fluid` or `Supplier<Fluid>` to replace the liquid of the material with the provided fluid.
8888
Assure that the material is registered with a liquid before attempting to replace it with your new fluid. An example is below.
8989

9090
!!! note "This may differ!"
@@ -95,6 +95,6 @@ public static void register() {
9595
GLUGG_BRINE = new Material.Builder(MyMod.id("glugg_brine"))
9696
.liquid(new FluidBuilder()).buildAndRegister();
9797

98-
GTFluids.handleNonMaterialFluids(GLUGG_BRINE, PVFluidRegistry.BRINE_FLUID_SOURCE::get);
98+
GTFluids.handleNonMaterialFluids(GLUGG_BRINE, () -> PVFluidRegistry.BRINE_FLUID_SOURCE.get());
9999
}
100100
```

0 commit comments

Comments
 (0)