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 named net/minecraft/world/gen/densityfunction/DensityFunction$Baseintermediary net/minecraft/class_6910$class_6913official dyr$d
-
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 DensityFunctionApplies the visitor to every child density function andthis.default voidfill(double[] densities, DensityFunction.EachApplier applier) Fills an array of densities usingthisdensity 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 usingthisdensity function and theDensityFunction.EachApplier.- Specified by:
fillin interfaceDensityFunction- Parameters:
densities- the array of densities to fill, like a buffer or a cacheapplier- theEachApplierto 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 named fillLnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)Vintermediary method_40470Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)Vofficial aLdyr;a([DLdyr$a;)V
-
apply
Applies the visitor to every child density function andthis.- Specified by:
applyin interfaceDensityFunction- Parameters:
visitor- the visitor that should be applied to this density function- Returns:
- the resulting density function
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/world/gen/densityfunction/DensityFunction;apply(Lnet/minecraft/world/gen/densityfunction/DensityFunction$DensityFunctionVisitor;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary method_40469Lnet/minecraft/class_6910;method_40469(Lnet/minecraft/class_6910$class_6915;)Lnet/minecraft/class_6910;official aLdyr;a(Ldyr$f;)Ldyr;
-