package net.minecraft.world.level.levelgen; import com.mojang.serialization.Codec; import net.minecraft.util.StringRepresentable; /** * Represents individual steps that the features and carvers chunk status go through, respectively. */ public class GenerationStep { public static enum Decoration implements StringRepresentable { RAW_GENERATION("raw_generation"), LAKES("lakes"), LOCAL_MODIFICATIONS("local_modifications"), UNDERGROUND_STRUCTURES("underground_structures"), SURFACE_STRUCTURES("surface_structures"), STRONGHOLDS("strongholds"), UNDERGROUND_ORES("underground_ores"), UNDERGROUND_DECORATION("underground_decoration"), FLUID_SPRINGS("fluid_springs"), VEGETAL_DECORATION("vegetal_decoration"), TOP_LAYER_MODIFICATION("top_layer_modification"); public static final Codec CODEC = StringRepresentable.fromEnum(GenerationStep.Decoration::values); private final String name; private Decoration(final String name) { this.name = name; } public String getName() { return this.name; } @Override public String getSerializedName() { return this.name; } } }