-
-
-
Method Summary
double
default void
default double
Returns the density value for the given block position.
Methods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
abs, apply, clamp, cube, getCodecHolder, halfNegative, maxValue, minValue, quarterNegative, square, squeeze
-
Method Details
-
-
sample
Returns the density value for the given block position.
- Specified by:
sample
in interface DensityFunction
- Parameters:
pos
- the block position
- Returns:
- the density value for the given block position
- Mappings:
Namespace |
Name |
Mixin selector |
official |
a |
Ldgs;a(Ldgs$b;)D |
intermediary |
method_40464 |
Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)D |
named |
sample |
Lnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)D |
-
fill
- Specified by:
fill
in interface DensityFunction
- Parameters:
densities
- the array of densities to fill, like a buffer or a cache
applier
- the EachApplier
to use. It has a method for filling the array, as well as to get a block position for an index
- Mappings:
Namespace |
Name |
Mixin selector |
official |
a |
Ldgs;a([DLdgs$a;)V |
intermediary |
method_40470 |
Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)V |
named |
fill |
Lnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)V |
-
apply
double apply(double density)
- Mappings:
Namespace |
Name |
Mixin selector |
official |
a |
Ldgt$p;a(D)D |
intermediary |
method_40520 |
Lnet/minecraft/class_6916$class_6932;method_40520(D)D |
named |
apply |
Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Unary;apply(D)D |