OverworldFunctionSet .java

net.minecraft.world.level.levelgen.OverworldFunctionSet (record): members: temperature, vegetation, continents, erosion, offset, factor, jaggedness, depth.

net.minecraft.world.level.levelgenrecord36 linescommon873 B

API Surface (1)

<U> OverworldFunctionSet<U> map(final Function<T, U> function)

Full Source

OverworldFunctionSet.java36 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.levelgen;
2
3
import java.util.function.Function;
4
5
public record OverworldFunctionSet<T>(
6
	T temperature,
7
	T vegetation,
8
	T continents,
9
	T erosion,
10
	T offset,
11
	T factor,
12
	T jaggedness,
13
	T depth,
14
	T slopedCheese,
15
	T preliminarySurfaceLevel,
16
	T chunkSurfaceLevel,
17
	T finalDensity
18
) {
19
	public <U> OverworldFunctionSet<U> map(final Function<T, U> function) {
20
		return new OverworldFunctionSet<>(
21
			function.apply(this.temperature),
22
			function.apply(this.vegetation),
23
			function.apply(this.continents),
24
			function.apply(this.erosion),
25
			function.apply(this.offset),
26
			function.apply(this.factor),
27
			function.apply(this.jaggedness),
28
			function.apply(this.depth),
29
			function.apply(this.slopedCheese),
30
			function.apply(this.preliminarySurfaceLevel),
31
			function.apply(this.chunkSurfaceLevel),
32
			function.apply(this.finalDensity)
33
		);
34
	}
35
}
36

Decompiled Minecraft 26.3 source of OverworldFunctionSet (net/minecraft/world/level/levelgen/OverworldFunctionSet.java) with Mojang official mappings, stored verbatim on the site.