Package net.minecraft.world.gen
Class OctavesNoiseGenerator
- java.lang.Object
-
- net.minecraft.world.gen.OctavesNoiseGenerator
-
- All Implemented Interfaces:
INoiseGenerator
public class OctavesNoiseGenerator extends java.lang.Object implements INoiseGenerator
-
-
Field Summary
Fields Modifier and Type Field Description private it.unimi.dsi.fastutil.doubles.DoubleList
amplitudes
private double
lowestFreqInputFactor
private double
lowestFreqValueFactor
private ImprovedNoiseGenerator[]
noiseLevels
-
Constructor Summary
Constructors Modifier Constructor Description private
OctavesNoiseGenerator(SharedSeedRandom p_i242040_1_, com.mojang.datafixers.util.Pair<java.lang.Integer,it.unimi.dsi.fastutil.doubles.DoubleList> p_i242040_2_)
private
OctavesNoiseGenerator(SharedSeedRandom p_i225879_1_, it.unimi.dsi.fastutil.ints.IntSortedSet p_i225879_2_)
OctavesNoiseGenerator(SharedSeedRandom p_i232141_1_, java.util.List<java.lang.Integer> p_i232141_2_)
OctavesNoiseGenerator(SharedSeedRandom p_i232142_1_, java.util.stream.IntStream p_i232142_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OctavesNoiseGenerator
create(SharedSeedRandom p_242932_0_, int p_242932_1_, it.unimi.dsi.fastutil.doubles.DoubleList p_242932_2_)
ImprovedNoiseGenerator
getOctaveNoise(int p_215463_1_)
double
getSurfaceNoiseValue(double p_215460_1_, double p_215460_3_, double p_215460_5_, double p_215460_7_)
double
getValue(double p_205563_1_, double p_205563_3_, double p_205563_5_)
double
getValue(double p_215462_1_, double p_215462_3_, double p_215462_5_, double p_215462_7_, double p_215462_9_, boolean p_215462_11_)
private static com.mojang.datafixers.util.Pair<java.lang.Integer,it.unimi.dsi.fastutil.doubles.DoubleList>
makeAmplitudes(it.unimi.dsi.fastutil.ints.IntSortedSet p_242933_0_)
static double
wrap(double p_215461_0_)
-
-
-
Field Detail
-
noiseLevels
private final ImprovedNoiseGenerator[] noiseLevels
-
amplitudes
private final it.unimi.dsi.fastutil.doubles.DoubleList amplitudes
-
lowestFreqValueFactor
private final double lowestFreqValueFactor
-
lowestFreqInputFactor
private final double lowestFreqInputFactor
-
-
Constructor Detail
-
OctavesNoiseGenerator
public OctavesNoiseGenerator(SharedSeedRandom p_i232142_1_, java.util.stream.IntStream p_i232142_2_)
-
OctavesNoiseGenerator
public OctavesNoiseGenerator(SharedSeedRandom p_i232141_1_, java.util.List<java.lang.Integer> p_i232141_2_)
-
OctavesNoiseGenerator
private OctavesNoiseGenerator(SharedSeedRandom p_i225879_1_, it.unimi.dsi.fastutil.ints.IntSortedSet p_i225879_2_)
-
OctavesNoiseGenerator
private OctavesNoiseGenerator(SharedSeedRandom p_i242040_1_, com.mojang.datafixers.util.Pair<java.lang.Integer,it.unimi.dsi.fastutil.doubles.DoubleList> p_i242040_2_)
-
-
Method Detail
-
create
public static OctavesNoiseGenerator create(SharedSeedRandom p_242932_0_, int p_242932_1_, it.unimi.dsi.fastutil.doubles.DoubleList p_242932_2_)
-
makeAmplitudes
private static com.mojang.datafixers.util.Pair<java.lang.Integer,it.unimi.dsi.fastutil.doubles.DoubleList> makeAmplitudes(it.unimi.dsi.fastutil.ints.IntSortedSet p_242933_0_)
-
getValue
public double getValue(double p_205563_1_, double p_205563_3_, double p_205563_5_)
-
getValue
public double getValue(double p_215462_1_, double p_215462_3_, double p_215462_5_, double p_215462_7_, double p_215462_9_, boolean p_215462_11_)
-
getOctaveNoise
@Nullable public ImprovedNoiseGenerator getOctaveNoise(int p_215463_1_)
-
wrap
public static double wrap(double p_215461_0_)
-
getSurfaceNoiseValue
public double getSurfaceNoiseValue(double p_215460_1_, double p_215460_3_, double p_215460_5_, double p_215460_7_)
- Specified by:
getSurfaceNoiseValue
in interfaceINoiseGenerator
-
-