36 lines
1.2 KiB
Java
36 lines
1.2 KiB
Java
|
package net.minecraft.world.level.levelgen;
|
||
|
|
||
|
import com.mojang.serialization.Codec;
|
||
|
import net.minecraft.util.StringRepresentable;
|
||
|
|
||
|
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<GenerationStep.Decoration> CODEC = StringRepresentable.fromEnum(GenerationStep.Decoration::values);
|
||
|
private final String name;
|
||
|
|
||
|
private Decoration(final String p_224193_) {
|
||
|
this.name = p_224193_;
|
||
|
}
|
||
|
|
||
|
public String getName() {
|
||
|
return this.name;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String getSerializedName() {
|
||
|
return this.name;
|
||
|
}
|
||
|
}
|
||
|
}
|