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
official dgt$p
intermediary net/minecraft/class_6916$class_6932
named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$Unary
  • Method Details

    • input

      Mappings:
      Namespace Name Mixin selector
      official au_ Ldgt$p;au_()Ldgs;
      intermediary comp_380 Lnet/minecraft/class_6916$class_6932;comp_380()Lnet/minecraft/class_6910;
      named input Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Unary;input()Lnet/minecraft/world/gen/densityfunction/DensityFunction;
    • 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
      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

      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 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