Interface DensityFunction.Base
- All Superinterfaces:
DensityFunction
- All Known Subinterfaces:
DensityFunctionTypes.Beardifying
- All Known Implementing Classes:
DensityFunctionTypes.Beardifier
,DensityFunctionTypes.BlendAlpha
,DensityFunctionTypes.BlendOffset
,DensityFunctionTypes.Constant
,DensityFunctionTypes.EndIslands
,DensityFunctionTypes.YClampedGradient
,InterpolatedNoiseSampler
,StructureWeightSampler
- Enclosing interface:
DensityFunction
Represents a density function that has no other density functions as an argument,
and provides default implementations of
fill(double[], net.minecraft.world.gen.densityfunction.DensityFunction.EachApplier)
and
apply(DensityFunctionVisitor)
for this case.- Mappings:
Namespace Name official dhd$d
intermediary net/minecraft/class_6910$class_6913
named net/minecraft/world/gen/densityfunction/DensityFunction$Base
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
DensityFunction.Base, DensityFunction.DensityFunctionVisitor, DensityFunction.EachApplier, DensityFunction.Noise, DensityFunction.NoisePos, DensityFunction.UnblendedNoisePos
-
Field Summary
Fields inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
CODEC, FUNCTION_CODEC, REGISTRY_ENTRY_CODEC
-
Method Summary
Modifier and TypeMethodDescriptiondefault DensityFunction
Applies the visitor to every child density function andthis
.default void
fill
(double[] densities, DensityFunction.EachApplier applier) Fills an array of densities usingthis
density function and theDensityFunction.EachApplier
.Methods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
abs, clamp, cube, getCodecHolder, halfNegative, maxValue, minValue, quarterNegative, sample, square, squeeze
-
Method Details
-
fill
Fills an array of densities usingthis
density function and theDensityFunction.EachApplier
.- Specified by:
fill
in interfaceDensityFunction
- Parameters:
densities
- the array of densities to fill, like a buffer or a cacheapplier
- theEachApplier
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
Ldhd;a([DLdhd$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
Applies the visitor to every child density function andthis
.- Specified by:
apply
in interfaceDensityFunction
- Parameters:
visitor
- the visitor that should be applied to this density function- Returns:
- the resulting density function
- Mappings:
Namespace Name Mixin selector official a
Ldhd;a(Ldhd$f;)Ldhd;
intermediary method_40469
Lnet/minecraft/class_6910;method_40469(Lnet/minecraft/class_6910$class_6915;)Lnet/minecraft/class_6910;
named apply
Lnet/minecraft/world/gen/densityfunction/DensityFunction;apply(Lnet/minecraft/world/gen/densityfunction/DensityFunction$DensityFunctionVisitor;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;
-