Class PerlinNoiseSampler

java.lang.Object
net.minecraft.util.math.noise.PerlinNoiseSampler

public final class PerlinNoiseSampler
extends Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    double originX  
    double originY  
    double originZ  
    private byte[] permutations  
  • Constructor Summary

    Constructors 
    Constructor Description
    PerlinNoiseSampler​(Random random)  
  • Method Summary

    Modifier and Type Method Description
    private int getGradient​(int hash)  
    private static double grad​(int hash, double x, double y, double z)  
    double sample​(double x, double y, double z, double double2, double double3)  
    double sample​(int sectionX, int sectionY, int sectionZ, double localX, double localY, double localZ, double fadeLocalX, double fadeLocalY, double fadeLocalZ)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • sample

      public double sample​(double x, double y, double z, double double2, double double3)
    • grad

      private static double grad​(int hash, double x, double y, double z)
    • getGradient

      private int getGradient​(int hash)
    • sample

      public double sample​(int sectionX, int sectionY, int sectionZ, double localX, double localY, double localZ, double fadeLocalX, double fadeLocalY, double fadeLocalZ)