net.minecraft.world.level.levelgen

public final class DensityFunctions

ctq
net.minecraft.world.level.levelgen.DensityFunctions
net.minecraft.class_6916
net.minecraft.world.gen.densityfunction.DensityFunctionTypes
net.minecraft.src.C_206968_
net.minecraft.world.level.levelgen.DensityFunctions

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<DensityFunction>
c
CODEC
field_37062
CODEC
f_208259_
protected static final double
a
MAX_REASONABLE_NOISE_VALUE
field_37060
field_37060
f_208257_
static final com.mojang.serialization.Codec<Double>
d
NOISE_VALUE_CODEC
field_37063
CONSTANT_RANGE
f_208260_
public static final com.mojang.serialization.Codec<DensityFunction>
b
DIRECT_CODEC
field_37061
field_37061
f_208258_

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static com.mojang.serialization.Codec<? extends DensityFunction>
a(hb<com.mojang.serialization.Codec<? extends ctp>> arg0)
bootstrap(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> arg0)
method_41066(class_2378<com.mojang.serialization.Codec<? extends class_6910>> arg0)
registerAndGetDefault(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry)
m_208342_(C_4705_<com.mojang.serialization.Codec<? extends C_206962_>> p_208343_)
private static com.mojang.serialization.Codec<? extends DensityFunction>
a(hb<com.mojang.serialization.Codec<? extends ctp>> arg0, String arg1, com.mojang.serialization.Codec<? extends ctp> arg2)
register(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> arg0, String arg1, com.mojang.serialization.Codec<? extends DensityFunction> arg2)
method_41067(class_2378<com.mojang.serialization.Codec<? extends class_6910>> arg0, String arg1, com.mojang.serialization.Codec<? extends class_6910> arg2)
register(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry, String id, com.mojang.serialization.Codec<? extends DensityFunction> codec)
m_208344_(C_4705_<com.mojang.serialization.Codec<? extends C_206962_>> p_208345_, String p_208346_, com.mojang.serialization.Codec<? extends C_206962_> p_208347_)
static <A, O> com.mojang.serialization.Codec<O>
a(com.mojang.serialization.Codec<A> arg0, Function<A, O> arg1, Function<O, A> arg2)
singleArgumentCodec(com.mojang.serialization.Codec<A> arg0, Function<A, O> arg1, Function<O, A> arg2)
method_41064(com.mojang.serialization.Codec<A> arg0, Function<A, O> arg1, Function<O, A> arg2)
method_41064(com.mojang.serialization.Codec<A> arg0, Function<A, O> arg1, Function<O, A> arg2)
m_208275_(com.mojang.serialization.Codec<A> p_208276_, Function<A, O> p_208277_, Function<O, A> p_208278_)
static <O> com.mojang.serialization.Codec<O>
a(Function<ctp, O> arg0, Function<O, ctp> arg1)
singleFunctionArgumentCodec(Function<DensityFunction, O> arg0, Function<O, DensityFunction> arg1)
method_41069(Function<class_6910, O> arg0, Function<O, class_6910> arg1)
method_41069(Function<DensityFunction, O> arg0, Function<O, DensityFunction> arg1)
m_208352_(Function<C_206962_, O> p_208353_, Function<O, C_206962_> p_208354_)
static <O> com.mojang.serialization.Codec<O>
a(BiFunction<ctp, ctp, O> arg0, Function<O, ctp> arg1, Function<O, ctp> arg2)
doubleFunctionArgumentCodec(BiFunction<DensityFunction, DensityFunction, O> arg0, Function<O, DensityFunction> arg1, Function<O, DensityFunction> arg2)
method_41068(BiFunction<class_6910, class_6910, O> arg0, Function<O, class_6910> arg1, Function<O, class_6910> arg2)
method_41068(BiFunction<DensityFunction, DensityFunction, O> arg0, Function<O, DensityFunction> arg1, Function<O, DensityFunction> arg2)
m_208348_(BiFunction<C_206962_, C_206962_, O> p_208349_, Function<O, C_206962_> p_208350_, Function<O, C_206962_> p_208351_)
static <O> com.mojang.serialization.Codec<O>
a(com.mojang.serialization.MapCodec<O> arg0)
makeCodec(com.mojang.serialization.MapCodec<O> arg0)
method_41065(com.mojang.serialization.MapCodec<O> arg0)
method_41065(com.mojang.serialization.MapCodec<O> arg0)
m_208279_(com.mojang.serialization.MapCodec<O> p_208280_)
public static DensityFunction
a(ctp arg0)
interpolated(DensityFunction arg0)
method_40483(class_6910 arg0)
interpolated(DensityFunction inputFunction)
m_208281_(C_206962_ p_208282_)
public static DensityFunction
b(ctp arg0)
flatCache(DensityFunction arg0)
method_40499(class_6910 arg0)
flatCache(DensityFunction inputFunction)
m_208361_(C_206962_ p_208362_)
public static DensityFunction
c(ctp arg0)
cache2d(DensityFunction arg0)
method_40504(class_6910 arg0)
cache2d(DensityFunction inputFunction)
m_208373_(C_206962_ p_208374_)
public static DensityFunction
d(ctp arg0)
cacheOnce(DensityFunction arg0)
method_40507(class_6910 arg0)
cacheOnce(DensityFunction inputFunction)
m_208380_(C_206962_ p_208381_)
public static DensityFunction
e(ctp arg0)
cacheAllInCell(DensityFunction arg0)
method_40510(class_6910 arg0)
cacheAllInCell(DensityFunction inputFunction)
m_208387_(C_206962_ p_208388_)
public static DensityFunction
a(gs<dic$a> arg0, double arg1, double arg2, double arg3, double arg4)
mappedNoise(Holder<NormalNoise$NoiseParameters> arg0, double arg1, double arg2, double arg3, double arg4)
method_40496(class_6880<class_5216$class_5487> arg0, double arg1, double arg2, double arg3, double arg4)
noise(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters, double xzScale, double yScale, double arg3, double arg4)
m_208336_(C_203228_<C_2663_$C_183032_> p_208337_, double p_208338_, double p_208340_, double arg3, double arg4)
public static DensityFunction
a(gs<dic$a> arg0, double arg1, double arg2, double arg3)
mappedNoise(Holder<NormalNoise$NoiseParameters> arg0, double arg1, double arg2, double arg3)
method_40497(class_6880<class_5216$class_5487> arg0, double arg1, double arg2, double arg3)
noise(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters, double yScale, double arg2, double arg3)
m_208331_(C_203228_<C_2663_$C_183032_> p_208332_, double p_208333_, double p_208335_, double arg3)
public static DensityFunction
a(gs<dic$a> arg0, double arg1, double arg2)
mappedNoise(Holder<NormalNoise$NoiseParameters> arg0, double arg1, double arg2)
method_40495(class_6880<class_5216$class_5487> arg0, double arg1, double arg2)
noise(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters, double arg1, double arg2)
m_208327_(C_203228_<C_2663_$C_183032_> p_208328_, double p_208329_, double arg2)
public static DensityFunction
a(ctp arg0, ctp arg1, double arg2, gs<dic$a> arg3)
shiftedNoise2d(DensityFunction arg0, DensityFunction arg1, double arg2, Holder<NormalNoise$NoiseParameters> arg3)
method_40487(class_6910 arg0, class_6910 arg1, double arg2, class_6880<class_5216$class_5487> arg3)
shiftedNoise(DensityFunction arg0, DensityFunction arg1, double arg2, RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters)
m_208296_(C_206962_ p_208297_, C_206962_ p_208298_, double p_208299_, C_203228_<C_2663_$C_183032_> arg3)
public static DensityFunction
a(gs<dic$a> arg0)
noise(Holder<NormalNoise$NoiseParameters> arg0)
method_40493(class_6880<class_5216$class_5487> arg0)
noise(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters)
m_208322_(C_203228_<C_2663_$C_183032_> p_208323_)
public static DensityFunction
b(gs<dic$a> arg0, double arg1, double arg2)
noise(Holder<NormalNoise$NoiseParameters> arg0, double arg1, double arg2)
method_40502(class_6880<class_5216$class_5487> arg0, double arg1, double arg2)
method_40502(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters, double xzScale, double yScale)
m_208368_(C_203228_<C_2663_$C_183032_> p_208369_, double p_208370_, double arg2)
public static DensityFunction
a(gs<dic$a> arg0, double arg1)
noise(Holder<NormalNoise$NoiseParameters> arg0, double arg1)
method_40494(class_6880<class_5216$class_5487> arg0, double arg1)
noise(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters, double yScale)
m_208324_(C_203228_<C_2663_$C_183032_> p_208325_, double p_208326_)
public static DensityFunction
a(ctp arg0, double arg1, double arg2, ctp arg3, ctp arg4)
rangeChoice(DensityFunction arg0, double arg1, double arg2, DensityFunction arg3, DensityFunction arg4)
method_40485(class_6910 arg0, double arg1, double arg2, class_6910 arg3, class_6910 arg4)
rangeChoice(DensityFunction arg0, double arg1, double arg2, DensityFunction arg3, DensityFunction arg4)
m_208287_(C_206962_ p_208288_, double p_208289_, double p_208291_, C_206962_ arg3, C_206962_ arg4)
public static DensityFunction
b(gs<dic$a> arg0)
shiftA(Holder<NormalNoise$NoiseParameters> arg0)
method_40501(class_6880<class_5216$class_5487> arg0)
shiftA(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters)
m_208366_(C_203228_<C_2663_$C_183032_> p_208367_)
public static DensityFunction
c(gs<dic$a> arg0)
shiftB(Holder<NormalNoise$NoiseParameters> arg0)
method_40506(class_6880<class_5216$class_5487> arg0)
shiftB(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters)
m_208378_(C_203228_<C_2663_$C_183032_> p_208379_)
public static DensityFunction
d(gs<dic$a> arg0)
shift(Holder<NormalNoise$NoiseParameters> arg0)
method_40509(class_6880<class_5216$class_5487> arg0)
shift(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters)
m_208385_(C_203228_<C_2663_$C_183032_> p_208386_)
public static DensityFunction
f(ctp arg0)
blendDensity(DensityFunction arg0)
method_40512(class_6910 arg0)
blendDensity(DensityFunction arg0)
m_208389_(C_206962_ p_208390_)
public static DensityFunction
a(long arg0)
endIslands(long arg0)
method_40482(long arg0)
endIslands(long seed)
m_208271_(long p_208272_)
public static DensityFunction
a(ctp arg0, gs<dic$a> arg1, ctq$ab$a arg2)
weirdScaledSampler(DensityFunction arg0, Holder<NormalNoise$NoiseParameters> arg1, DensityFunctions$WeirdScaledSampler$RarityValueMapper arg2)
method_40491(class_6910 arg0, class_6880<class_5216$class_5487> arg1, class_6916$class_6944$class_7048 arg2)
weirdScaledSampler(DensityFunction arg0, RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> arg1, DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper arg2)
m_208315_(C_206962_ p_208316_, C_203228_<C_2663_$C_183032_> p_208317_, C_206968_$C_206971_$C_206972_ p_208318_)
public static DensityFunction
a(cug arg0, ctp arg1)
slide(NoiseSettings arg0, DensityFunction arg1)
method_40492(class_5309 arg0, class_6910 arg1)
slide(GenerationShapeConfig arg0, DensityFunction arg1)
m_208319_(C_2196_ p_208320_, C_206962_ p_208321_)
public static DensityFunction
a(ctp arg0, ctp arg1)
add(DensityFunction arg0, DensityFunction arg1)
method_40486(class_6910 arg0, class_6910 arg1)
method_40486(DensityFunction arg0, DensityFunction arg1)
m_208293_(C_206962_ p_208294_, C_206962_ p_208295_)
public static DensityFunction
b(ctp arg0, ctp arg1)
mul(DensityFunction arg0, DensityFunction arg1)
method_40500(class_6910 arg0, class_6910 arg1)
method_40500(DensityFunction arg0, DensityFunction arg1)
m_208363_(C_206962_ p_208364_, C_206962_ p_208365_)
public static DensityFunction
c(ctp arg0, ctp arg1)
min(DensityFunction arg0, DensityFunction arg1)
method_40505(class_6910 arg0, class_6910 arg1)
method_40505(DensityFunction arg0, DensityFunction arg1)
m_208375_(C_206962_ p_208376_, C_206962_ p_208377_)
public static DensityFunction
d(ctp arg0, ctp arg1)
max(DensityFunction arg0, DensityFunction arg1)
method_40508(class_6910 arg0, class_6910 arg1)
method_40508(DensityFunction arg0, DensityFunction arg1)
m_208382_(C_206962_ p_208383_, C_206962_ p_208384_)
public static DensityFunction
a(ctp arg0, ctp arg1, ctp arg2, ctq$y$b arg3, double arg4, double arg5)
terrainShaperSpline(DensityFunction arg0, DensityFunction arg1, DensityFunction arg2, DensityFunctions$TerrainShaperSpline$SplineType arg3, double arg4, double arg5)
method_40489(class_6910 arg0, class_6910 arg1, class_6910 arg2, class_6916$class_6942$class_7054 arg3, double arg4, double arg5)
method_40489(DensityFunction arg0, DensityFunction arg1, DensityFunction arg2, DensityFunctionTypes$TerrainShaperSpline$Spline arg3, double arg4, double arg5)
m_208305_(C_206962_ p_208306_, C_206962_ p_208307_, C_206962_ p_208308_, C_206968_$C_206999_$C_207001_ p_208309_, double p_208310_, double arg5)
public static DensityFunction
a()
zero()
method_40479()
zero()
m_208263_()
public static DensityFunction
a(double arg0)
constant(double arg0)
method_40480(double arg0)
constant(double density)
m_208264_(double p_208265_)
public static DensityFunction
a(int arg0, int arg1, double arg2, double arg3)
yClampedGradient(int arg0, int arg1, double arg2, double arg3)
method_40481(int arg0, int arg1, double arg2, double arg3)
yClampedGradient(int arg0, int arg1, double arg2, double arg3)
m_208266_(int p_208267_, int p_208268_, double p_208269_, double arg3)
public static DensityFunction
a(ctp arg0, ctq$k$a arg1)
map(DensityFunction arg0, DensityFunctions$Mapped$Type arg1)
method_40490(class_6910 arg0, class_6916$class_6925$class_6926 arg1)
method_40490(DensityFunction arg0, DensityFunctionTypes$class_6925$Type arg1)
m_208312_(C_206962_ p_208313_, C_206968_$C_206983_$C_206984_ p_208314_)
private static DensityFunction
a(ctp arg0, double arg1, double arg2)
mapFromUnitTo(DensityFunction arg0, double arg1, double arg2)
method_40484(class_6910 arg0, double arg1, double arg2)
method_40484(DensityFunction arg0, double arg1, double arg2)
m_208283_(C_206962_ p_208284_, double p_208285_, double arg2)
public static DensityFunction
b()
blendAlpha()
method_40498()
blendAlpha()
m_208360_()
public static DensityFunction
c()
blendOffset()
method_40503()
blendOffset()
m_208372_()
public static DensityFunction
a(ctp arg0, ctp arg1, ctp arg2)
lerp(DensityFunction arg0, DensityFunction arg1, DensityFunction arg2)
method_40488(class_6910 arg0, class_6910 arg1, class_6910 arg2)
method_40488(DensityFunction arg0, DensityFunction arg1, DensityFunction arg2)
m_208301_(C_206962_ p_208302_, C_206962_ p_208303_, C_206962_ p_208304_)