net.minecraft.world.gen.densityfunction

record DensityFunctionTypes$RangeChoice

implements DensityFunction

net.minecraft.world.level.levelgen.DensityFunctions$RangeChoice
net.minecraft.class_6916$class_6933
net.minecraft.world.gen.densityfunction.DensityFunctionTypes$RangeChoice

Field summary

Modifier and TypeField
private final DensityFunction
input
comp_390
input
private final double
minInclusive
comp_391
minInclusive
private final double
maxExclusive
comp_392
maxExclusive
private final DensityFunction
whenInRange
comp_393
whenInRange
private final DensityFunction
whenOutOfRange
comp_394
whenOutOfRange
public static final com.mojang.serialization.MapCodec<DensityFunctionTypes$RangeChoice>
DATA_CODEC
field_37092
RANGE_CHOICE_CODEC
public static final CodecHolder<DensityFunctionTypes$RangeChoice>
CODEC
field_37093
CODEC_HOLDER

Constructor summary

ModifierConstructor
private (DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange)

Method summary

Modifier and TypeMethod
public double
compute(DensityFunction$FunctionContext context)
method_40464(class_6910$class_6912 arg0)
sample(DensityFunction$NoisePos arg0)
public void
fillArray(double[] output, DensityFunction$ContextProvider contextProvider)
method_40470(double[] arg0, class_6910$class_6911 arg1)
fill(double[] arg0, DensityFunction$EachApplier arg1)
public DensityFunction
mapAll(DensityFunction$Visitor visitor)
method_40469(class_6910$class_6915 arg0)
apply(DensityFunction$DensityFunctionVisitor arg0)
public double
minValue()
comp_377()
minValue()
public double
maxValue()
comp_378()
maxValue()
public CodecHolder<? extends DensityFunction>
codec()
method_41062()
getCodecHolder()
public DensityFunction
input()
comp_390()
input()
public double
minInclusive()
comp_391()
minInclusive()
public double
maxExclusive()
comp_392()
maxExclusive()
public DensityFunction
whenInRange()
comp_393()
whenInRange()
public DensityFunction
whenOutOfRange()
comp_394()
whenOutOfRange()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_41085(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_41085(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)