Interface DensityFunctionTypes.Positional

All Superinterfaces:
DensityFunction
All Known Implementing Classes:
DensityFunctionTypes.BlendDensity, DensityFunctionTypes.WeirdScaledSampler
Enclosing class:
DensityFunctionTypes

private static interface DensityFunctionTypes.Positional extends DensityFunction
Mappings:
Namespace Name
official dhe$x
intermediary net/minecraft/class_6916$class_6943
named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$Positional
  • Method Details

    • input

      Mappings:
      Namespace Name Mixin selector
      official j Ldhe$x;j()Ldhd;
      intermediary comp_379 Lnet/minecraft/class_6916$class_6943;comp_379()Lnet/minecraft/class_6910;
      named input Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Positional;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 Ldhd;a(Ldhd$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 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

      double apply(DensityFunction.NoisePos pos, double density)
      Mappings:
      Namespace Name Mixin selector
      official a Ldhe$x;a(Ldhd$b;D)D
      intermediary method_40518 Lnet/minecraft/class_6916$class_6943;method_40518(Lnet/minecraft/class_6910$class_6912;D)D
      named apply Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Positional;apply(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;D)D