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

public static interface DensityFunction.Base extends 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 dkl$d
intermediary net/minecraft/class_6910$class_6913
named net/minecraft/world/gen/densityfunction/DensityFunction$Base
  • Method Details

    • fill

      default void fill(double[] densities, DensityFunction.EachApplier applier)
      Fills an array of densities using this density function and the DensityFunction.EachApplier.
      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 Ldkl;a([DLdkl$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 and this.
      Specified by:
      apply in interface DensityFunction
      Parameters:
      visitor - the visitor that should be applied to this density function
      Returns:
      the resulting density function
      Mappings:
      Namespace Name Mixin selector
      official a Ldkl;a(Ldkl$f;)Ldkl;
      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;