Class DensityFunctionTypes
java.lang.Object
net.minecraft.world.gen.densityfunction.DensityFunctionTypes
- Mappings:
Namespace Name official dkhintermediary net/minecraft/class_6916named net/minecraft/world/gen/densityfunction/DensityFunctionTypes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumstatic interfaceprivate static final record(package private) static interfaceprotected static enumprivate static final recordprotected static enumprotected static final recordprivate static final recordprotected static final classprivate static final recordprotected static final record(package private) static interfaceprivate static interfaceprivate static final recordstatic final recordprotected static final recordprotected static final recordprotected static final recordprotected static final recordstatic final recordprivate static interfaceprotected static final recordprotected static final recordstatic interfaceprotected static final recordprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DensityFunction>(package private) static final com.mojang.serialization.Codec<Double>private static final com.mojang.serialization.Codec<DensityFunction>protected static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DensityFunctionstatic DensityFunctionstatic DensityFunctionblendDensity(DensityFunction input) static DensityFunctionstatic DensityFunctioncache2d(DensityFunction inputFunction) static DensityFunctioncacheAllInCell(DensityFunction inputFunction) static DensityFunctioncacheOnce(DensityFunction inputFunction) static DensityFunctionconstant(double density) static DensityFunctionendIslands(long seed) static DensityFunctionflatCache(DensityFunction inputFunction) (package private) static <A,O> CodecHolder<O> holderOf(com.mojang.serialization.Codec<A> codec, Function<A, O> creator, Function<O, A> argumentGetter) (package private) static <O> CodecHolder<O>holderOf(com.mojang.serialization.MapCodec<O> mapCodec) (package private) static <O> CodecHolder<O>holderOf(BiFunction<DensityFunction, DensityFunction, O> creator, Function<O, DensityFunction> argument1Getter, Function<O, DensityFunction> argument2Getter) (package private) static <O> CodecHolder<O>holderOf(Function<DensityFunction, O> creator, Function<O, DensityFunction> argumentGetter) static DensityFunctioninterpolated(DensityFunction inputFunction) static DensityFunctionlerp(DensityFunction delta, double start, DensityFunction end) Creates a new density function which interpolates between the values ofstartandend, based ondelta.static DensityFunctionlerp(DensityFunction delta, DensityFunction start, DensityFunction end) Creates a new density function which interpolates between the values ofstartandend, based ondelta.private static DensityFunctionmapRange(DensityFunction function, double min, double max) Creates a new density function based onfunction, but with a different range.static DensityFunctionstatic DensityFunctionstatic DensityFunctionstatic DensityFunctionnoise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunctionnoise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleY) static DensityFunctionnoise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleXz, double scaleY) static DensityFunctionnoiseInRange(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double min, double max) static DensityFunctionnoiseInRange(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleY, double min, double max) static DensityFunctionnoiseInRange(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleXz, double scaleY, double min, double max) static DensityFunctionrangeChoice(DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) private static com.mojang.serialization.Codec<? extends DensityFunction>register(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry, String id, CodecHolder<? extends DensityFunction> codecHolder) static com.mojang.serialization.Codec<? extends DensityFunction>registerAndGetDefault(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry) static DensityFunctionshift(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunctionshiftA(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunctionshiftB(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunctionshiftedNoise(DensityFunction shiftX, DensityFunction shiftZ, double xzScale, RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) static DensityFunctionspline(Spline<DensityFunctionTypes.Spline.SplinePos, DensityFunctionTypes.Spline.DensityFunctionWrapper> spline) static DensityFunctionunary(DensityFunction input, DensityFunctionTypes.UnaryOperation.Type type) static DensityFunctionweirdScaledSampler(DensityFunction input, RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> parameters, DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper mapper) static DensityFunctionyClampedGradient(int fromY, int toY, double fromValue, double toValue) static DensityFunctionzero()
-
Field Details
-
DYNAMIC_RANGE
- Mappings:
Namespace Name Mixin selector official cLdkh;c:Lcom/mojang/serialization/Codec;intermediary field_37062Lnet/minecraft/class_6916;field_37062:Lcom/mojang/serialization/Codec;named DYNAMIC_RANGELnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;DYNAMIC_RANGE:Lcom/mojang/serialization/Codec;
-
MAX_CONSTANT_VALUE
protected static final double MAX_CONSTANT_VALUE- See Also:
- Mappings:
Namespace Name Mixin selector official aLdkh;a:Dintermediary field_37060Lnet/minecraft/class_6916;field_37060:Dnamed MAX_CONSTANT_VALUELnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;MAX_CONSTANT_VALUE:D
-
CONSTANT_RANGE
- Mappings:
Namespace Name Mixin selector official dLdkh;d:Lcom/mojang/serialization/Codec;intermediary field_37063Lnet/minecraft/class_6916;field_37063:Lcom/mojang/serialization/Codec;named CONSTANT_RANGELnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;CONSTANT_RANGE:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official bLdkh;b:Lcom/mojang/serialization/Codec;intermediary field_37061Lnet/minecraft/class_6916;field_37061:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DensityFunctionTypes
private DensityFunctionTypes()
-
-
Method Details
-
registerAndGetDefault
public static com.mojang.serialization.Codec<? extends DensityFunction> registerAndGetDefault(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Lht;)Lcom/mojang/serialization/Codec;intermediary method_41066Lnet/minecraft/class_6916;method_41066(Lnet/minecraft/class_2378;)Lcom/mojang/serialization/Codec;named registerAndGetDefaultLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;registerAndGetDefault(Lnet/minecraft/registry/Registry;)Lcom/mojang/serialization/Codec;
-
register
private static com.mojang.serialization.Codec<? extends DensityFunction> register(Registry<com.mojang.serialization.Codec<? extends DensityFunction>> registry, String id, CodecHolder<? extends DensityFunction> codecHolder) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Lht;Ljava/lang/String;Larm;)Lcom/mojang/serialization/Codec;intermediary method_41067Lnet/minecraft/class_6916;method_41067(Lnet/minecraft/class_2378;Ljava/lang/String;Lnet/minecraft/class_7243;)Lcom/mojang/serialization/Codec;named registerLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;register(Lnet/minecraft/registry/Registry;Ljava/lang/String;Lnet/minecraft/util/dynamic/CodecHolder;)Lcom/mojang/serialization/Codec;
-
holderOf
static <A,O> CodecHolder<O> holderOf(com.mojang.serialization.Codec<A> codec, Function<A, O> creator, Function<O, A> argumentGetter) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Larm;intermediary method_41064Lnet/minecraft/class_6916;method_41064(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/class_7243;named holderOfLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;holderOf(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/util/dynamic/CodecHolder;
-
holderOf
static <O> CodecHolder<O> holderOf(Function<DensityFunction, O> creator, Function<O, DensityFunction> argumentGetter) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Ljava/util/function/Function;Ljava/util/function/Function;)Larm;intermediary method_41069Lnet/minecraft/class_6916;method_41069(Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/class_7243;named holderOfLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;holderOf(Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/util/dynamic/CodecHolder;
-
holderOf
static <O> CodecHolder<O> holderOf(BiFunction<DensityFunction, DensityFunction, O> creator, Function<O, DensityFunction> argument1Getter, Function<O, DensityFunction> argument2Getter) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Ljava/util/function/BiFunction;Ljava/util/function/Function;Ljava/util/function/Function;)Larm;intermediary method_41068Lnet/minecraft/class_6916;method_41068(Ljava/util/function/BiFunction;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/class_7243;named holderOfLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;holderOf(Ljava/util/function/BiFunction;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/util/dynamic/CodecHolder;
-
holderOf
- Mappings:
Namespace Name Mixin selector official aLdkh;a(Lcom/mojang/serialization/MapCodec;)Larm;intermediary method_41065Lnet/minecraft/class_6916;method_41065(Lcom/mojang/serialization/MapCodec;)Lnet/minecraft/class_7243;named holderOfLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;holderOf(Lcom/mojang/serialization/MapCodec;)Lnet/minecraft/util/dynamic/CodecHolder;
-
interpolated
- Mappings:
Namespace Name Mixin selector official aLdkh;a(Ldkg;)Ldkg;intermediary method_40483Lnet/minecraft/class_6916;method_40483(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named interpolatedLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;interpolated(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
flatCache
- Mappings:
Namespace Name Mixin selector official bLdkh;b(Ldkg;)Ldkg;intermediary method_40499Lnet/minecraft/class_6916;method_40499(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named flatCacheLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;flatCache(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
cache2d
- Mappings:
Namespace Name Mixin selector official cLdkh;c(Ldkg;)Ldkg;intermediary method_40504Lnet/minecraft/class_6916;method_40504(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named cache2dLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;cache2d(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
cacheOnce
- Mappings:
Namespace Name Mixin selector official dLdkh;d(Ldkg;)Ldkg;intermediary method_40507Lnet/minecraft/class_6916;method_40507(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named cacheOnceLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;cacheOnce(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
cacheAllInCell
- Mappings:
Namespace Name Mixin selector official eLdkh;e(Ldkg;)Ldkg;intermediary method_40510Lnet/minecraft/class_6916;method_40510(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named cacheAllInCellLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;cacheAllInCell(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
noiseInRange
public static DensityFunction noiseInRange(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, @Deprecated double scaleXz, double scaleY, double min, double max) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Lhg;DDDD)Ldkg;intermediary method_40496Lnet/minecraft/class_6916;method_40496(Lnet/minecraft/class_6880;DDDD)Lnet/minecraft/class_6910;named noiseInRangeLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;noiseInRange(Lnet/minecraft/registry/entry/RegistryEntry;DDDD)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
noiseInRange
public static DensityFunction noiseInRange(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleY, double min, double max) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Lhg;DDD)Ldkg;intermediary method_40497Lnet/minecraft/class_6916;method_40497(Lnet/minecraft/class_6880;DDD)Lnet/minecraft/class_6910;named noiseInRangeLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;noiseInRange(Lnet/minecraft/registry/entry/RegistryEntry;DDD)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
noiseInRange
public static DensityFunction noiseInRange(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double min, double max) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Lhg;DD)Ldkg;intermediary method_40495Lnet/minecraft/class_6916;method_40495(Lnet/minecraft/class_6880;DD)Lnet/minecraft/class_6910;named noiseInRangeLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;noiseInRange(Lnet/minecraft/registry/entry/RegistryEntry;DD)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
shiftedNoise
public static DensityFunction shiftedNoise(DensityFunction shiftX, DensityFunction shiftZ, double xzScale, RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Ldkg;Ldkg;DLhg;)Ldkg;intermediary method_40487Lnet/minecraft/class_6916;method_40487(Lnet/minecraft/class_6910;Lnet/minecraft/class_6910;DLnet/minecraft/class_6880;)Lnet/minecraft/class_6910;named shiftedNoiseLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;shiftedNoise(Lnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/world/gen/densityfunction/DensityFunction;DLnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
noise
public static DensityFunction noise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Lhg;)Ldkg;intermediary method_40493Lnet/minecraft/class_6916;method_40493(Lnet/minecraft/class_6880;)Lnet/minecraft/class_6910;named noiseLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;noise(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
noise
public static DensityFunction noise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleXz, double scaleY) - Mappings:
Namespace Name Mixin selector official bLdkh;b(Lhg;DD)Ldkg;intermediary method_40502Lnet/minecraft/class_6916;method_40502(Lnet/minecraft/class_6880;DD)Lnet/minecraft/class_6910;named noiseLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;noise(Lnet/minecraft/registry/entry/RegistryEntry;DD)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
noise
public static DensityFunction noise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters, double scaleY) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Lhg;D)Ldkg;intermediary method_40494Lnet/minecraft/class_6916;method_40494(Lnet/minecraft/class_6880;D)Lnet/minecraft/class_6910;named noiseLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;noise(Lnet/minecraft/registry/entry/RegistryEntry;D)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
rangeChoice
public static DensityFunction rangeChoice(DensityFunction input, double minInclusive, double maxExclusive, DensityFunction whenInRange, DensityFunction whenOutOfRange) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Ldkg;DDLdkg;Ldkg;)Ldkg;intermediary method_40485Lnet/minecraft/class_6916;method_40485(Lnet/minecraft/class_6910;DDLnet/minecraft/class_6910;Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named rangeChoiceLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;rangeChoice(Lnet/minecraft/world/gen/densityfunction/DensityFunction;DDLnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
shiftA
public static DensityFunction shiftA(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) - Mappings:
Namespace Name Mixin selector official bLdkh;b(Lhg;)Ldkg;intermediary method_40501Lnet/minecraft/class_6916;method_40501(Lnet/minecraft/class_6880;)Lnet/minecraft/class_6910;named shiftALnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;shiftA(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
shiftB
public static DensityFunction shiftB(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) - Mappings:
Namespace Name Mixin selector official cLdkh;c(Lhg;)Ldkg;intermediary method_40506Lnet/minecraft/class_6916;method_40506(Lnet/minecraft/class_6880;)Lnet/minecraft/class_6910;named shiftBLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;shiftB(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
shift
public static DensityFunction shift(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseParameters) - Mappings:
Namespace Name Mixin selector official dLdkh;d(Lhg;)Ldkg;intermediary method_40509Lnet/minecraft/class_6916;method_40509(Lnet/minecraft/class_6880;)Lnet/minecraft/class_6910;named shiftLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;shift(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
blendDensity
- Mappings:
Namespace Name Mixin selector official fLdkh;f(Ldkg;)Ldkg;intermediary method_40512Lnet/minecraft/class_6916;method_40512(Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named blendDensityLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;blendDensity(Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
endIslands
- Mappings:
Namespace Name Mixin selector official aLdkh;a(J)Ldkg;intermediary method_40482Lnet/minecraft/class_6916;method_40482(J)Lnet/minecraft/class_6910;named endIslandsLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;endIslands(J)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
weirdScaledSampler
public static DensityFunction weirdScaledSampler(DensityFunction input, RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> parameters, DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper mapper) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Ldkg;Lhg;Ldkh$z$a;)Ldkg;intermediary method_40491Lnet/minecraft/class_6916;method_40491(Lnet/minecraft/class_6910;Lnet/minecraft/class_6880;Lnet/minecraft/class_6916$class_6944$class_7048;)Lnet/minecraft/class_6910;named weirdScaledSamplerLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;weirdScaledSampler(Lnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
add
- Mappings:
Namespace Name Mixin selector official aLdkh;a(Ldkg;Ldkg;)Ldkg;intermediary method_40486Lnet/minecraft/class_6916;method_40486(Lnet/minecraft/class_6910;Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named addLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;add(Lnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
mul
- Mappings:
Namespace Name Mixin selector official bLdkh;b(Ldkg;Ldkg;)Ldkg;intermediary method_40500Lnet/minecraft/class_6916;method_40500(Lnet/minecraft/class_6910;Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named mulLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;mul(Lnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
min
- Mappings:
Namespace Name Mixin selector official cLdkh;c(Ldkg;Ldkg;)Ldkg;intermediary method_40505Lnet/minecraft/class_6916;method_40505(Lnet/minecraft/class_6910;Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named minLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;min(Lnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
max
- Mappings:
Namespace Name Mixin selector official dLdkh;d(Ldkg;Ldkg;)Ldkg;intermediary method_40508Lnet/minecraft/class_6916;method_40508(Lnet/minecraft/class_6910;Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named maxLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;max(Lnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
spline
public static DensityFunction spline(Spline<DensityFunctionTypes.Spline.SplinePos, DensityFunctionTypes.Spline.DensityFunctionWrapper> spline) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Laqw;)Ldkg;intermediary method_41528Lnet/minecraft/class_6916;method_41528(Lnet/minecraft/class_6492;)Lnet/minecraft/class_6910;named splineLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;spline(Lnet/minecraft/util/math/Spline;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
zero
- Mappings:
Namespace Name Mixin selector official aLdkh;a()Ldkg;intermediary method_40479Lnet/minecraft/class_6916;method_40479()Lnet/minecraft/class_6910;named zeroLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;zero()Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
constant
- Mappings:
Namespace Name Mixin selector official aLdkh;a(D)Ldkg;intermediary method_40480Lnet/minecraft/class_6916;method_40480(D)Lnet/minecraft/class_6910;named constantLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;constant(D)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
yClampedGradient
public static DensityFunction yClampedGradient(int fromY, int toY, double fromValue, double toValue) - Mappings:
Namespace Name Mixin selector official aLdkh;a(IIDD)Ldkg;intermediary method_40481Lnet/minecraft/class_6916;method_40481(IIDD)Lnet/minecraft/class_6910;named yClampedGradientLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;yClampedGradient(IIDD)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
unary
public static DensityFunction unary(DensityFunction input, DensityFunctionTypes.UnaryOperation.Type type) - Mappings:
Namespace Name Mixin selector official aLdkh;a(Ldkg;Ldkh$k$a;)Ldkg;intermediary method_40490Lnet/minecraft/class_6916;method_40490(Lnet/minecraft/class_6910;Lnet/minecraft/class_6916$class_6925$class_6926;)Lnet/minecraft/class_6910;named unaryLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;unary(Lnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$UnaryOperation$Type;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
mapRange
Creates a new density function based onfunction, but with a different range.functionis assumed to be in the range-1.0to1.0, while the new function will be in the rangemintomax.- Parameters:
min- the new minimum valuemax- the new maximum value- Returns:
- the created density function
- Mappings:
Namespace Name Mixin selector official aLdkh;a(Ldkg;DD)Ldkg;intermediary method_40484Lnet/minecraft/class_6916;method_40484(Lnet/minecraft/class_6910;DD)Lnet/minecraft/class_6910;named mapRangeLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;mapRange(Lnet/minecraft/world/gen/densityfunction/DensityFunction;DD)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
blendAlpha
- Mappings:
Namespace Name Mixin selector official bLdkh;b()Ldkg;intermediary method_40498Lnet/minecraft/class_6916;method_40498()Lnet/minecraft/class_6910;named blendAlphaLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;blendAlpha()Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
blendOffset
- Mappings:
Namespace Name Mixin selector official cLdkh;c()Ldkg;intermediary method_40503Lnet/minecraft/class_6916;method_40503()Lnet/minecraft/class_6910;named blendOffsetLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;blendOffset()Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
lerp
public static DensityFunction lerp(DensityFunction delta, DensityFunction start, DensityFunction end) Creates a new density function which interpolates between the values ofstartandend, based ondelta.- Parameters:
delta- the function used for the delta valuestart- the function used for the start value, for thedeltavalue0.0end- the function used for the end value, for thedeltavalue1.0- Returns:
- the created density function
- Mappings:
Namespace Name Mixin selector official aLdkh;a(Ldkg;Ldkg;Ldkg;)Ldkg;intermediary method_40488Lnet/minecraft/class_6916;method_40488(Lnet/minecraft/class_6910;Lnet/minecraft/class_6910;Lnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named lerpLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;lerp(Lnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/world/gen/densityfunction/DensityFunction;Lnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-
lerp
Creates a new density function which interpolates between the values ofstartandend, based ondelta.- Parameters:
start- the start value, for thedeltavalue0.0end- the function used for the end value, for thedeltavalue1.0- Returns:
- the created density function
- Mappings:
Namespace Name Mixin selector official aLdkh;a(Ldkg;DLdkg;)Ldkg;intermediary method_42359Lnet/minecraft/class_6916;method_42359(Lnet/minecraft/class_6910;DLnet/minecraft/class_6910;)Lnet/minecraft/class_6910;named lerpLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes;lerp(Lnet/minecraft/world/gen/densityfunction/DensityFunction;DLnet/minecraft/world/gen/densityfunction/DensityFunction;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-