net.minecraft.world.level.levelgen

public final class DensityFunctions

ecn
net.minecraft.world.level.levelgen.DensityFunctions
net.minecraft.class_6916
net.minecraft.world.gen.densityfunction.DensityFunctionTypes
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
protected static final double
a
MAX_REASONABLE_NOISE_VALUE
field_37060
MAX_CONSTANT_VALUE
static final com.mojang.serialization.Codec<Double>
d
NOISE_VALUE_CODEC
field_37063
CONSTANT_RANGE
public static final com.mojang.serialization.Codec<DensityFunction>
b
DIRECT_CODEC
field_37061
CODEC

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static com.mojang.serialization.MapCodec<? extends DensityFunction>
a(ke<com.mojang.serialization.MapCodec<? extends ecm>> arg0)
bootstrap(Registry<com.mojang.serialization.MapCodec<? extends DensityFunction>> arg0)
method_41066(class_2378<com.mojang.serialization.MapCodec<? extends class_6910>> arg0)
registerAndGetDefault(Registry<com.mojang.serialization.MapCodec<? extends DensityFunction>> registry)
private static com.mojang.serialization.MapCodec<? extends DensityFunction>
a(ke<com.mojang.serialization.MapCodec<? extends ecm>> arg0, String arg1, ays<? extends ecm> arg2)
register(Registry<com.mojang.serialization.MapCodec<? extends DensityFunction>> arg0, String arg1, KeyDispatchDataCodec<? extends DensityFunction> arg2)
method_41067(class_2378<com.mojang.serialization.MapCodec<? extends class_6910>> arg0, String arg1, class_7243<? extends class_6910> arg2)
register(Registry<com.mojang.serialization.MapCodec<? extends DensityFunction>> registry, String id, CodecHolder<? extends DensityFunction> codecHolder)
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)
static <O> KeyDispatchDataCodec<O>
a(Function<ecm, O> arg0, Function<O, ecm> 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)
static <O> KeyDispatchDataCodec<O>
a(BiFunction<ecm, ecm, O> arg0, Function<O, ecm> arg1, Function<O, ecm> 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)
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)
public static DensityFunction
a(ecm arg0)
interpolated(DensityFunction arg0)
method_40483(class_6910 arg0)
interpolated(DensityFunction inputFunction)
public static DensityFunction
b(ecm arg0)
flatCache(DensityFunction arg0)
method_40499(class_6910 arg0)
flatCache(DensityFunction inputFunction)
public static DensityFunction
c(ecm arg0)
cache2d(DensityFunction arg0)
method_40504(class_6910 arg0)
cache2d(DensityFunction inputFunction)
public static DensityFunction
d(ecm arg0)
cacheOnce(DensityFunction arg0)
method_40507(class_6910 arg0)
cacheOnce(DensityFunction inputFunction)
public static DensityFunction
e(ecm arg0)
cacheAllInCell(DensityFunction arg0)
method_40510(class_6910 arg0)
cacheAllInCell(DensityFunction inputFunction)
public static DensityFunction
a(jr<esd$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)
public static DensityFunction
a(jr<esd$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)
public static DensityFunction
a(jr<esd$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)
public static DensityFunction
a(ecm arg0, ecm arg1, double arg2, jr<esd$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)
public static DensityFunction
a(jr<esd$a> arg0)
noise(Holder<NormalNoise$NoiseParameters> arg0)
method_40493(class_6880<class_5216$class_5487> arg0)
noise(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters)
public static DensityFunction
b(jr<esd$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)
public static DensityFunction
a(jr<esd$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)
public static DensityFunction
a(ecm arg0, double arg1, double arg2, ecm arg3, ecm 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)
public static DensityFunction
b(jr<esd$a> arg0)
shiftA(Holder<NormalNoise$NoiseParameters> arg0)
method_40501(class_6880<class_5216$class_5487> arg0)
shiftA(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters)
public static DensityFunction
c(jr<esd$a> arg0)
shiftB(Holder<NormalNoise$NoiseParameters> arg0)
method_40506(class_6880<class_5216$class_5487> arg0)
shiftB(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters)
public static DensityFunction
d(jr<esd$a> arg0)
shift(Holder<NormalNoise$NoiseParameters> arg0)
method_40509(class_6880<class_5216$class_5487> arg0)
shift(RegistryEntry<DoublePerlinNoiseSampler$NoiseParameters> noiseParameters)
public static DensityFunction
f(ecm arg0)
blendDensity(DensityFunction arg0)
method_40512(class_6910 arg0)
blendDensity(DensityFunction input)
public static DensityFunction
a(long arg0)
endIslands(long arg0)
method_40482(long arg0)
endIslands(long seed)
public static DensityFunction
a(ecm arg0, jr<esd$a> arg1, ecn$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)
public static DensityFunction
a(ecm arg0, ecm arg1)
add(DensityFunction arg0, DensityFunction arg1)
method_40486(class_6910 arg0, class_6910 arg1)
add(DensityFunction a, DensityFunction b)
public static DensityFunction
b(ecm arg0, ecm arg1)
mul(DensityFunction arg0, DensityFunction arg1)
method_40500(class_6910 arg0, class_6910 arg1)
mul(DensityFunction a, DensityFunction b)
public static DensityFunction
c(ecm arg0, ecm arg1)
min(DensityFunction arg0, DensityFunction arg1)
method_40505(class_6910 arg0, class_6910 arg1)
min(DensityFunction a, DensityFunction b)
public static DensityFunction
d(ecm arg0, ecm arg1)
max(DensityFunction arg0, DensityFunction arg1)
method_40508(class_6910 arg0, class_6910 arg1)
max(DensityFunction a, DensityFunction b)
public static DensityFunction
a(ayb<ecn$w$b, ecn$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)
public static DensityFunction
a()
zero()
method_40479()
zero()
public static DensityFunction
a(double arg0)
constant(double arg0)
method_40480(double arg0)
constant(double density)
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)
public static DensityFunction
a(ecm arg0, ecn$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)
private static DensityFunction
a(ecm 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)
public static DensityFunction
b()
blendAlpha()
method_40498()
blendAlpha()
public static DensityFunction
c()
blendOffset()
method_40503()
blendOffset()
public static DensityFunction
a(ecm arg0, ecm arg1, ecm 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)
public static DensityFunction
a(ecm arg0, double arg1, ecm 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)