21 lines
578 B
Java
21 lines
578 B
Java
package net.minecraft.world.level.levelgen.structure.templatesystem;
|
|
|
|
import com.mojang.serialization.Codec;
|
|
import net.minecraft.util.StringRepresentable;
|
|
|
|
public enum LiquidSettings implements StringRepresentable {
|
|
IGNORE_WATERLOGGING("ignore_waterlogging"),
|
|
APPLY_WATERLOGGING("apply_waterlogging");
|
|
|
|
public static Codec<LiquidSettings> CODEC = StringRepresentable.fromValues(LiquidSettings::values);
|
|
private final String name;
|
|
|
|
private LiquidSettings(final String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
@Override
|
|
public String getSerializedName() {
|
|
return this.name;
|
|
}
|
|
}
|