public int sample(final RandomSource random, final WorldGenerationContext context) {
27
return this.value.resolveY(context);
28
}
29
30
@Override
31
public HeightProviderType<?> getType() {
32
return HeightProviderType.CONSTANT;
33
}
34
35
@Override
36
public String toString() {
37
return this.value.toString();
38
}
39
}
40
Decompiled Minecraft 26.3 source of ConstantHeight (net/minecraft/world/level/levelgen/heightproviders/ConstantHeight.java) with Mojang official mappings, stored verbatim on the site.