Package net.minecraft.util.math.noise
Class OctavePerlinNoiseSampler
java.lang.Object
net.minecraft.util.math.noise.OctavePerlinNoiseSampler
- All Implemented Interfaces:
NoiseSampler
public class OctavePerlinNoiseSampler extends Object implements NoiseSampler
-
Field Summary
Fields Modifier and Type Field Description private doublefield_20659private doublefield_20660private DoubleListfield_26445private PerlinNoiseSampler[]octaveSamplers -
Constructor Summary
Constructors Modifier Constructor Description privateOctavePerlinNoiseSampler(ChunkRandom chunkRandom, com.mojang.datafixers.util.Pair<Integer,DoubleList> pair)privateOctavePerlinNoiseSampler(ChunkRandom random, IntSortedSet octaves)OctavePerlinNoiseSampler(ChunkRandom random, List<Integer> octaves)OctavePerlinNoiseSampler(ChunkRandom random, IntStream octaves) -
Method Summary
Modifier and Type Method Description static OctavePerlinNoiseSamplercreate(ChunkRandom random, int offset, DoubleList octaves)PerlinNoiseSamplergetOctave(int octave)static doublemaintainPrecision(double double2)private static com.mojang.datafixers.util.Pair<Integer,DoubleList>method_30848(IntSortedSet intSortedSet)doublesample(double x, double y, double z)doublesample(double x, double y, double double2, double double3)doublesample(double x, double y, double z, double double2, double double3, boolean bool)
-
Field Details
-
octaveSamplers
-
field_26445
-
field_20659
private final double field_20659 -
field_20660
private final double field_20660
-
-
Constructor Details
-
OctavePerlinNoiseSampler
-
OctavePerlinNoiseSampler
-
OctavePerlinNoiseSampler
-
OctavePerlinNoiseSampler
private OctavePerlinNoiseSampler(ChunkRandom chunkRandom, com.mojang.datafixers.util.Pair<Integer,DoubleList> pair)
-
-
Method Details
-
create
-
method_30848
private static com.mojang.datafixers.util.Pair<Integer,DoubleList> method_30848(IntSortedSet intSortedSet) -
sample
public double sample(double x, double y, double z) -
sample
public double sample(double x, double y, double z, double double2, double double3, boolean bool) -
getOctave
-
maintainPrecision
public static double maintainPrecision(double double2) -
sample
public double sample(double x, double y, double double2, double double3)- Specified by:
samplein interfaceNoiseSampler
-