Package net.minecraft.util.math.noise
Record Class DoublePerlinNoiseSampler.NoiseParameters
java.lang.Object
java.lang.Record
net.minecraft.util.math.noise.DoublePerlinNoiseSampler.NoiseParameters
- Record Components:
- firstOctave-
- amplitudes-
- Enclosing class:
- DoublePerlinNoiseSampler
public static record DoublePerlinNoiseSampler.NoiseParameters(int firstOctave, DoubleList amplitudes)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters- intermediary - net/minecraft/class_5216$class_5487- official - esd$a- named - firstOctave- intermediary - comp_516- official - c- named - amplitudes- intermediary - comp_517- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final DoubleListThe field for theamplitudesrecord component.static final com.mojang.serialization.Codec<DoublePerlinNoiseSampler.NoiseParameters> private final intThe field for thefirstOctaverecord component.static final com.mojang.serialization.Codec<RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters>> 
- 
Constructor SummaryConstructorsConstructorDescriptionNoiseParameters(int firstOctave, double firstAmplitude, double[] amplitudes) NoiseParameters(int int2, DoubleList doubleList) NoiseParameters(int firstOctave, List<Double> amplitudes) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theamplitudesrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefirstOctaverecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
firstOctaveprivate final int firstOctaveThe field for thefirstOctaverecord component.
- 
amplitudesThe field for theamplitudesrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_35424- Lnet/minecraft/class_5216$class_5487;field_35424:Lcom/mojang/serialization/Codec;- official - a- Lesd$a;a:Lcom/mojang/serialization/Codec;
 
- 
REGISTRY_ENTRY_CODECpublic static final com.mojang.serialization.Codec<RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters>> REGISTRY_ENTRY_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - REGISTRY_ENTRY_CODEC- Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;REGISTRY_ENTRY_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_26438- Lnet/minecraft/class_5216$class_5487;field_26438:Lcom/mojang/serialization/Codec;- official - b- Lesd$a;b:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
NoiseParameters- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;<init>(ILjava/util/List;)V- intermediary - <init>- Lnet/minecraft/class_5216$class_5487;<init>(ILjava/util/List;)V- official - <init>- Lesd$a;<init>(ILjava/util/List;)V
 
- 
NoiseParameterspublic NoiseParameters(int firstOctave, double firstAmplitude, double[] amplitudes) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;<init>(ID[D)V- intermediary - <init>- Lnet/minecraft/class_5216$class_5487;<init>(ID[D)V- official - <init>- Lesd$a;<init>(ID[D)V
 
- 
NoiseParameters
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
firstOctavepublic int firstOctave()Returns the value of thefirstOctaverecord component.- Returns:
- the value of the firstOctaverecord component
 
- 
amplitudesReturns the value of theamplitudesrecord component.- Returns:
- the value of the amplitudesrecord component
 
 
-