net.minecraft.world.level.levelgen

public final class DensityFunctions

czo
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
DYNAMIC_RANGE
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
CODEC
f_208258_

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static com.mojang.serialization.Codec<? extends DensityFunction>
a(hm<com.mojang.serialization.Codec<? extends czn>> 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(hm<com.mojang.serialization.Codec<? extends czn>> arg0, String arg1, alj<? extends czn> arg2)
register(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> arg0, String arg1, KeyDispatchDataCodec<? extends DensityFunction> arg2)
method_41067(class_2378<com.mojang.serialization.Codec<? extends class_6910>> arg0, String arg1, class_7243<? extends class_6910> arg2)
register(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry, String id, CodecHolder<? extends DensityFunction> arg2)
m_224034_(C_4705_<com.mojang.serialization.Codec<? extends C_206962_>> p_224035_, String p_224036_, C_212972_<? extends C_206962_> p_224037_)
static <A, O> KeyDispatchDataCodec<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_224024_(com.mojang.serialization.Codec<A> p_224025_, Function<A, O> p_224026_, Function<O, A> p_224027_)
static <O> KeyDispatchDataCodec<O>
a(Function<czn, O> arg0, Function<O, czn> 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_224042_(Function<C_206962_, O> p_224043_, Function<O, C_206962_> p_224044_)
static <O> KeyDispatchDataCodec<O>
a(BiFunction<czn, czn, O> arg0, Function<O, czn> arg1, Function<O, czn> 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_224038_(BiFunction<C_206962_, C_206962_, O> p_224039_, Function<O, C_206962_> p_224040_, Function<O, C_206962_> p_224041_)
static <O> KeyDispatchDataCodec<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_224028_(com.mojang.serialization.MapCodec<O> p_224029_)
public static DensityFunction
a(czn arg0)
interpolated(DensityFunction arg0)
method_40483(class_6910 arg0)
interpolated(DensityFunction inputFunction)
m_208281_(C_206962_ p_208282_)
public static DensityFunction
b(czn arg0)
flatCache(DensityFunction arg0)
method_40499(class_6910 arg0)
flatCache(DensityFunction inputFunction)
m_208361_(C_206962_ p_208362_)
public static DensityFunction
c(czn arg0)
cache2d(DensityFunction arg0)
method_40504(class_6910 arg0)
cache2d(DensityFunction inputFunction)
m_208373_(C_206962_ p_208374_)
public static DensityFunction
d(czn arg0)
cacheOnce(DensityFunction arg0)
method_40507(class_6910 arg0)
cacheOnce(DensityFunction inputFunction)
m_208380_(C_206962_ p_208381_)
public static DensityFunction
e(czn arg0)
cacheAllInCell(DensityFunction arg0)
method_40510(class_6910 arg0)
cacheAllInCell(DensityFunction inputFunction)
m_208387_(C_206962_ p_208388_)
public static DensityFunction
a(hc<dod$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_183032_> p_208337_, double p_208338_, double p_208340_, double arg3, double arg4)
public static DensityFunction
a(hc<dod$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_183032_> p_208332_, double p_208333_, double p_208335_, double arg3)
public static DensityFunction
a(hc<dod$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_183032_> p_208328_, double p_208329_, double arg2)
public static DensityFunction
a(czn arg0, czn arg1, double arg2, hc<dod$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_183032_> arg3)
public static DensityFunction
a(hc<dod$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_183032_> p_208323_)
public static DensityFunction
b(hc<dod$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_183032_> p_208369_, double p_208370_, double arg2)
public static DensityFunction
a(hc<dod$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_183032_> p_208325_, double p_208326_)
public static DensityFunction
a(czn arg0, double arg1, double arg2, czn arg3, czn 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(hc<dod$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_183032_> p_208367_)
public static DensityFunction
c(hc<dod$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_183032_> p_208379_)
public static DensityFunction
d(hc<dod$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_183032_> p_208386_)
public static DensityFunction
f(czn 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(czn arg0, hc<dod$a> arg1, czo$z$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_183032_> p_208317_, C_206972_ p_208318_)
public static DensityFunction
a(czn arg0, czn arg1)
add(DensityFunction arg0, DensityFunction arg1)
method_40486(class_6910 arg0, class_6910 arg1)
add(DensityFunction arg0, DensityFunction arg1)
m_208293_(C_206962_ p_208294_, C_206962_ p_208295_)
public static DensityFunction
b(czn arg0, czn arg1)
mul(DensityFunction arg0, DensityFunction arg1)
method_40500(class_6910 arg0, class_6910 arg1)
mul(DensityFunction arg0, DensityFunction arg1)
m_208363_(C_206962_ p_208364_, C_206962_ p_208365_)
public static DensityFunction
c(czn arg0, czn arg1)
min(DensityFunction arg0, DensityFunction arg1)
method_40505(class_6910 arg0, class_6910 arg1)
min(DensityFunction arg0, DensityFunction arg1)
m_208375_(C_206962_ p_208376_, C_206962_ p_208377_)
public static DensityFunction
d(czn arg0, czn arg1)
max(DensityFunction arg0, DensityFunction arg1)
method_40508(class_6910 arg0, class_6910 arg1)
max(DensityFunction arg0, DensityFunction arg1)
m_208382_(C_206962_ p_208383_, C_206962_ p_208384_)
public static DensityFunction
a(aku<czo$w$b, czo$w$a> arg0)
spline(CubicSpline<DensityFunctions$Spline$Point, DensityFunctions$Spline$Coordinate> arg0)
method_41528(class_6492<class_6916$class_7076$class_7136, class_6916$class_7076$class_7135> arg0)
spline(Spline<DensityFunctionTypes$Spline$class_7136, DensityFunctionTypes$Spline$class_7135> spline)
m_224020_(C_182769_<C_213137_, C_213136_> p_224021_)
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(czn arg0, czo$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_206984_ p_208314_)
private static DensityFunction
a(czn 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(czn arg0, czn arg1, czn 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_)
public static DensityFunction
a(czn arg0, double arg1, czn arg2)
lerp(DensityFunction arg0, double arg1, DensityFunction arg2)
method_42359(class_6910 arg0, double arg1, class_6910 arg2)
method_42359(DensityFunction arg0, double arg1, DensityFunction arg2)
m_224030_(C_206962_ p_224031_, double p_224032_, C_206962_ arg2)