Class OctavePerlinNoiseSampler

java.lang.Object
net.minecraft.util.math.noise.OctavePerlinNoiseSampler
All Implemented Interfaces:
NoiseSampler

public class OctavePerlinNoiseSampler
extends Object
implements NoiseSampler
Mappings:
Namespace Name
official czp
intermediary net/minecraft/class_3537
named net/minecraft/util/math/noise/OctavePerlinNoiseSampler
  • Field Details

    • octaveSamplers

      private final PerlinNoiseSampler[] octaveSamplers
      Mappings:
      Namespace Name Mixin selector
      official a Lczp;a:[Lczn;
      intermediary field_15744 Lnet/minecraft/class_3537;field_15744:[Lnet/minecraft/class_3756;
      named octaveSamplers Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;octaveSamplers:[Lnet/minecraft/util/math/noise/PerlinNoiseSampler;
    • amplitudes

      private final DoubleList amplitudes
      Mappings:
      Namespace Name Mixin selector
      official b Lczp;b:Lit/unimi/dsi/fastutil/doubles/DoubleList;
      intermediary field_26445 Lnet/minecraft/class_3537;field_26445:Lit/unimi/dsi/fastutil/doubles/DoubleList;
      named amplitudes Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;amplitudes:Lit/unimi/dsi/fastutil/doubles/DoubleList;
    • persistence

      private final double persistence
      Mappings:
      Namespace Name Mixin selector
      official c Lczp;c:D
      intermediary field_20659 Lnet/minecraft/class_3537;field_20659:D
      named persistence Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;persistence:D
    • lacunarity

      private final double lacunarity
      Mappings:
      Namespace Name Mixin selector
      official d Lczp;d:D
      intermediary field_20660 Lnet/minecraft/class_3537;field_20660:D
      named lacunarity Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;lacunarity:D
  • Constructor Details

    • OctavePerlinNoiseSampler

      public OctavePerlinNoiseSampler​(WorldGenRandom random, IntStream octaves)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lczp;<init>(Lcmv;Ljava/util/stream/IntStream;)V
      intermediary <init> Lnet/minecraft/class_3537;<init>(Lnet/minecraft/class_5819;Ljava/util/stream/IntStream;)V
      named <init> Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;<init>(Lnet/minecraft/world/gen/WorldGenRandom;Ljava/util/stream/IntStream;)V
    • OctavePerlinNoiseSampler

      public OctavePerlinNoiseSampler​(WorldGenRandom random, List<Integer> octaves)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lczp;<init>(Lcmv;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_3537;<init>(Lnet/minecraft/class_5819;Ljava/util/List;)V
      named <init> Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;<init>(Lnet/minecraft/world/gen/WorldGenRandom;Ljava/util/List;)V
    • OctavePerlinNoiseSampler

      private OctavePerlinNoiseSampler​(WorldGenRandom random, IntSortedSet octaves)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lczp;<init>(Lcmv;Lit/unimi/dsi/fastutil/ints/IntSortedSet;)V
      intermediary <init> Lnet/minecraft/class_3537;<init>(Lnet/minecraft/class_5819;Lit/unimi/dsi/fastutil/ints/IntSortedSet;)V
      named <init> Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;<init>(Lnet/minecraft/world/gen/WorldGenRandom;Lit/unimi/dsi/fastutil/ints/IntSortedSet;)V
    • OctavePerlinNoiseSampler

      private OctavePerlinNoiseSampler​(WorldGenRandom random, com.mojang.datafixers.util.Pair<Integer,​DoubleList> offsetAndAmplitudes)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lczp;<init>(Lcmv;Lcom/mojang/datafixers/util/Pair;)V
      intermediary <init> Lnet/minecraft/class_3537;<init>(Lnet/minecraft/class_5819;Lcom/mojang/datafixers/util/Pair;)V
      named <init> Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;<init>(Lnet/minecraft/world/gen/WorldGenRandom;Lcom/mojang/datafixers/util/Pair;)V
  • Method Details

    • create

      public static OctavePerlinNoiseSampler create​(WorldGenRandom random, int offset, DoubleList amplitudes)
      Mappings:
      Namespace Name Mixin selector
      official a Lczp;a(Lcmv;ILit/unimi/dsi/fastutil/doubles/DoubleList;)Lczp;
      intermediary method_30847 Lnet/minecraft/class_3537;method_30847(Lnet/minecraft/class_5819;ILit/unimi/dsi/fastutil/doubles/DoubleList;)Lnet/minecraft/class_3537;
      named create Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;create(Lnet/minecraft/world/gen/WorldGenRandom;ILit/unimi/dsi/fastutil/doubles/DoubleList;)Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;
    • calculateAmplitudes

      private static com.mojang.datafixers.util.Pair<Integer,​DoubleList> calculateAmplitudes​(IntSortedSet octaves)
      Mappings:
      Namespace Name Mixin selector
      official a Lczp;a(Lit/unimi/dsi/fastutil/ints/IntSortedSet;)Lcom/mojang/datafixers/util/Pair;
      intermediary method_30848 Lnet/minecraft/class_3537;method_30848(Lit/unimi/dsi/fastutil/ints/IntSortedSet;)Lcom/mojang/datafixers/util/Pair;
      named calculateAmplitudes Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;calculateAmplitudes(Lit/unimi/dsi/fastutil/ints/IntSortedSet;)Lcom/mojang/datafixers/util/Pair;
    • sample

      public double sample​(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official a Lczp;a(DDD)D
      intermediary method_15416 Lnet/minecraft/class_3537;method_15416(DDD)D
      named sample Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;sample(DDD)D
    • sample

      @Deprecated public double sample​(double x, double y, double z, double yScale, double yMax, boolean useOrigin)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official a Lczp;a(DDDDDZ)D
      intermediary method_16453 Lnet/minecraft/class_3537;method_16453(DDDDDZ)D
      named sample Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;sample(DDDDDZ)D
    • getOctave

      @Nullable public PerlinNoiseSampler getOctave​(int octave)
      Mappings:
      Namespace Name Mixin selector
      official a Lczp;a(I)Lczn;
      intermediary method_16668 Lnet/minecraft/class_3537;method_16668(I)Lnet/minecraft/class_3756;
      named getOctave Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;getOctave(I)Lnet/minecraft/util/math/noise/PerlinNoiseSampler;
    • maintainPrecision

      public static double maintainPrecision​(double value)
      Mappings:
      Namespace Name Mixin selector
      official a Lczp;a(D)D
      intermediary method_16452 Lnet/minecraft/class_3537;method_16452(D)D
      named maintainPrecision Lnet/minecraft/util/math/noise/OctavePerlinNoiseSampler;maintainPrecision(D)D
    • sample

      public double sample​(double x, double y, double yScale, double yMax)
      Specified by:
      sample in interface NoiseSampler
      Mappings:
      Namespace Name Mixin selector
      official a Lczs;a(DDDD)D
      intermediary method_16454 Lnet/minecraft/class_3757;method_16454(DDDD)D
      named sample Lnet/minecraft/util/math/noise/NoiseSampler;sample(DDDD)D