GenerationStep .java

net.minecraft.world.level.levelgen.GenerationStep (class): members: Decoration. strings: "top_layer_modification", "underground_decoration", "lakes".

net.minecraft.world.level.levelgenclass37 linescommon1020 B

API Surface (2)

String getName()
String getSerializedName()

String literals (11)

"raw_generation"
"lakes"
"local_modifications"
"underground_structures"
"surface_structures"
"strongholds"
"underground_ores"
"underground_decoration"
"fluid_springs"
"vegetal_decoration"
"top_layer_modification"

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

GenerationStep.java37 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.levelgen;
2
3
import com.mojang.serialization.Codec;
4
import net.minecraft.util.StringRepresentable;
5
6
public class GenerationStep {
7
	public enum Decoration implements StringRepresentable {
8
		RAW_GENERATION("raw_generation"),
9
		LAKES("lakes"),
10
		LOCAL_MODIFICATIONS("local_modifications"),
11
		UNDERGROUND_STRUCTURES("underground_structures"),
12
		SURFACE_STRUCTURES("surface_structures"),
13
		STRONGHOLDS("strongholds"),
14
		UNDERGROUND_ORES("underground_ores"),
15
		UNDERGROUND_DECORATION("underground_decoration"),
16
		FLUID_SPRINGS("fluid_springs"),
17
		VEGETAL_DECORATION("vegetal_decoration"),
18
		TOP_LAYER_MODIFICATION("top_layer_modification");
19
20
		public static final Codec<GenerationStep.Decoration> CODEC = StringRepresentable.fromEnum(GenerationStep.Decoration::values);
21
		private final String name;
22
23
		Decoration(final String name) {
24
			this.name = name;
25
		}
26
27
		public String getName() {
28
			return this.name;
29
		}
30
31
		@Override
32
		public String getSerializedName() {
33
			return this.name;
34
		}
35
	}
36
}
37

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