Interface DensityFunctionTypes.Unary

All Superinterfaces:
DensityFunction
All Known Implementing Classes:
DensityFunctionTypes.Clamp, DensityFunctionTypes.LinearOperation, DensityFunctionTypes.UnaryOperation
Enclosing class:
DensityFunctionTypes

private static interface DensityFunctionTypes.Unary extends DensityFunction
Mappings:
Namespace Name
named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$Unary
intermediary net/minecraft/class_6916$class_6932
official edj$p
  • Method Details

    • input

      Mappings:
      Namespace Name Mixin selector
      named input Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Unary;input()Lnet/minecraft/world/gen/densityfunction/DensityFunction;
      intermediary comp_380 Lnet/minecraft/class_6916$class_6932;comp_380()Lnet/minecraft/class_6910;
      official aE_ Ledj$p;aE_()Ledi;
    • sample

      default double sample(DensityFunction.NoisePos pos)
      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
      named sample Lnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)D
      intermediary method_40464 Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)D
      official a Ledi;a(Ledi$b;)D
    • 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
      named fill Lnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)V
      intermediary method_40470 Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)V
      official a Ledi;a([DLedi$a;)V
    • apply

      double apply(double density)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Unary;apply(D)D
      intermediary method_40520 Lnet/minecraft/class_6916$class_6932;method_40520(D)D
      official a Ledj$p;a(D)D