net.minecraft.world.level.levelgen

public final class DensityFunctions

dgt
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
MAX_CONSTANT_VALUE
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(hq<com.mojang.serialization.Codec<? extends dgs>> 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(hq<com.mojang.serialization.Codec<? extends dgs>> arg0, String arg1, apd<? extends dgs> 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> codecHolder)
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)
holderOf(com.mojang.serialization.Codec<A> codec, Function<A, O> creator, Function<O, A> argumentGetter)
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<dgs, O> arg0, Function<O, dgs> arg1)
singleFunctionArgumentCodec(Function<DensityFunction, O> arg0, Function<O, DensityFunction> arg1)
method_41069(Function<class_6910, O> arg0, Function<O, class_6910> arg1)
holderOf(Function<DensityFunction, O> creator, Function<O, DensityFunction> argumentGetter)
m_224042_(Function<C_206962_, O> p_224043_, Function<O, C_206962_> p_224044_)
static <O> KeyDispatchDataCodec<O>
a(BiFunction<dgs, dgs, O> arg0, Function<O, dgs> arg1, Function<O, dgs> 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)
holderOf(BiFunction<DensityFunction, DensityFunction, O> creator, Function<O, DensityFunction> argument1Getter, Function<O, DensityFunction> argument2Getter)
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)
holderOf(com.mojang.serialization.MapCodec<O> mapCodec)
m_224028_(com.mojang.serialization.MapCodec<O> p_224029_)
public static DensityFunction
a(dgs arg0)
interpolated(DensityFunction arg0)
method_40483(class_6910 arg0)
interpolated(DensityFunction inputFunction)
m_208281_(C_206962_ p_208282_)
public static DensityFunction
b(dgs arg0)
flatCache(DensityFunction arg0)
method_40499(class_6910 arg0)
flatCache(DensityFunction inputFunction)
m_208361_(C_206962_ p_208362_)
public static DensityFunction
c(dgs arg0)
cache2d(DensityFunction arg0)
method_40504(class_6910 arg0)
cache2d(DensityFunction inputFunction)
m_208373_(C_206962_ p_208374_)
public static DensityFunction
d(dgs arg0)
cacheOnce(DensityFunction arg0)
method_40507(class_6910 arg0)
cacheOnce(DensityFunction inputFunction)
m_208380_(C_206962_ p_208381_)
public static DensityFunction
e(dgs arg0)
cacheAllInCell(DensityFunction arg0)
method_40510(class_6910 arg0)
cacheAllInCell(DensityFunction inputFunction)
m_208387_(C_206962_ p_208388_)
public static DensityFunction
a(hd<dvo$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)
noiseInRange(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters, double scaleXz, double scaleY, double min, double max)
m_208336_(C_203228_<C_2663_$C_183032_> p_208337_, double p_208338_, double p_208340_, double arg3, double arg4)
public static DensityFunction
a(hd<dvo$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)
noiseInRange(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters, double scaleY, double min, double max)
m_208331_(C_203228_<C_2663_$C_183032_> p_208332_, double p_208333_, double p_208335_, double arg3)
public static DensityFunction
a(hd<dvo$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)
noiseInRange(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters, double min, double max)
m_208327_(C_203228_<C_2663_$C_183032_> p_208328_, double p_208329_, double arg2)
public static DensityFunction
a(dgs arg0, dgs arg1, double arg2, hd<dvo$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 shiftX, DensityFunction shiftZ, double xzScale, 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(hd<dvo$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(hd<dvo$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)
noise(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters, double scaleXz, double scaleY)
m_208368_(C_203228_<C_2663_$C_183032_> p_208369_, double p_208370_, double arg2)
public static DensityFunction
a(hd<dvo$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 scaleY)
m_208324_(C_203228_<C_2663_$C_183032_> p_208325_, double p_208326_)
public static DensityFunction
a(dgs arg0, double arg1, double arg2, dgs arg3, dgs 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 input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange)
m_208287_(C_206962_ p_208288_, double p_208289_, double p_208291_, C_206962_ arg3, C_206962_ arg4)
public static DensityFunction
b(hd<dvo$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(hd<dvo$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(hd<dvo$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(dgs arg0)
blendDensity(DensityFunction arg0)
method_40512(class_6910 arg0)
blendDensity(DensityFunction input)
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(dgs arg0, hd<dvo$a> arg1, dgt$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 input, RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> parameters, DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper mapper)
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(dgs arg0, dgs arg1)
add(DensityFunction arg0, DensityFunction arg1)
method_40486(class_6910 arg0, class_6910 arg1)
add(DensityFunction a, DensityFunction b)
m_208293_(C_206962_ p_208294_, C_206962_ p_208295_)
public static DensityFunction
b(dgs arg0, dgs arg1)
mul(DensityFunction arg0, DensityFunction arg1)
method_40500(class_6910 arg0, class_6910 arg1)
mul(DensityFunction a, DensityFunction b)
m_208363_(C_206962_ p_208364_, C_206962_ p_208365_)
public static DensityFunction
c(dgs arg0, dgs arg1)
min(DensityFunction arg0, DensityFunction arg1)
method_40505(class_6910 arg0, class_6910 arg1)
min(DensityFunction a, DensityFunction b)
m_208375_(C_206962_ p_208376_, C_206962_ p_208377_)
public static DensityFunction
d(dgs arg0, dgs arg1)
max(DensityFunction arg0, DensityFunction arg1)
method_40508(class_6910 arg0, class_6910 arg1)
max(DensityFunction a, DensityFunction b)
m_208382_(C_206962_ p_208383_, C_206962_ p_208384_)
public static DensityFunction
a(aon<dgt$w$b, dgt$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$SplinePos, DensityFunctionTypes$Spline$DensityFunctionWrapper> spline)
m_224020_(C_182769_<C_206968_$C_211142_$C_213137_, C_206968_$C_211142_$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 fromY, int toY, double fromValue, double toValue)
m_208266_(int p_208267_, int p_208268_, double p_208269_, double arg3)
public static DensityFunction
a(dgs arg0, dgt$k$a arg1)
map(DensityFunction arg0, DensityFunctions$Mapped$Type arg1)
method_40490(class_6910 arg0, class_6916$class_6925$class_6926 arg1)
unary(DensityFunction input, DensityFunctionTypes$UnaryOperation$Type type)
m_208312_(C_206962_ p_208313_, C_206968_$C_206983_$C_206984_ p_208314_)
private static DensityFunction
a(dgs arg0, double arg1, double arg2)
mapFromUnitTo(DensityFunction arg0, double arg1, double arg2)
method_40484(class_6910 arg0, double arg1, double arg2)
mapRange(DensityFunction function, double min, double max)
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(dgs arg0, dgs arg1, dgs arg2)
lerp(DensityFunction arg0, DensityFunction arg1, DensityFunction arg2)
method_40488(class_6910 arg0, class_6910 arg1, class_6910 arg2)
lerp(DensityFunction delta, DensityFunction start, DensityFunction end)
m_208301_(C_206962_ p_208302_, C_206962_ p_208303_, C_206962_ p_208304_)
public static DensityFunction
a(dgs arg0, double arg1, dgs arg2)
lerp(DensityFunction arg0, double arg1, DensityFunction arg2)
method_42359(class_6910 arg0, double arg1, class_6910 arg2)
lerp(DensityFunction delta, double start, DensityFunction end)
m_224030_(C_206962_ p_224031_, double p_224032_, C_206962_ arg2)