Record Class DensityFunction.Noise
java.lang.Object
java.lang.Record
net.minecraft.world.gen.densityfunction.DensityFunction.Noise
- Record Components:
- noiseData-
- noise-
- Enclosing interface:
- DensityFunction
public static record DensityFunction.Noise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseData, @Nullable DoublePerlinNoiseSampler noise)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/world/gen/densityfunction/DensityFunction$Noise- intermediary - net/minecraft/class_6910$class_7270- official - ecm$c- named - noiseData- intermediary - comp_662- official - b- named - noise- intermediary - comp_663- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DensityFunction.Noise> private final @Nullable DoublePerlinNoiseSamplerThe field for thenoiserecord component.private final RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> The field for thenoiseDatarecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionNoise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> registryEntry, @Nullable DoublePerlinNoiseSampler doublePerlinNoiseSampler) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublefinal inthashCode()Returns a hash code value for this object.noise()Returns the value of thenoiserecord component.Returns the value of thenoiseDatarecord component.doublesample(double x, double y, double z) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
noiseDataThe field for thenoiseDatarecord component.
- 
noiseThe field for thenoiserecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/world/gen/densityfunction/DensityFunction$Noise;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_38248- Lnet/minecraft/class_6910$class_7270;field_38248:Lcom/mojang/serialization/Codec;- official - a- Lecm$c;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
Noise- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/world/gen/densityfunction/DensityFunction$Noise;<init>(Lnet/minecraft/registry/entry/RegistryEntry;)V- intermediary - <init>- Lnet/minecraft/class_6910$class_7270;<init>(Lnet/minecraft/class_6880;)V- official - <init>- Lecm$c;<init>(Ljr;)V
 
- 
Noisepublic Noise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> registryEntry, @Nullable @Nullable DoublePerlinNoiseSampler doublePerlinNoiseSampler) 
 
- 
- 
Method Details- 
samplepublic double sample(double x, double y, double z) - Mappings:
- Namespace - Name - Mixin selector - named - sample- Lnet/minecraft/world/gen/densityfunction/DensityFunction$Noise;sample(DDD)D- intermediary - method_42356- Lnet/minecraft/class_6910$class_7270;method_42356(DDD)D- official - a- Lecm$c;a(DDD)D
 
- 
getMaxValuepublic double getMaxValue()- Mappings:
- Namespace - Name - Mixin selector - named - getMaxValue- Lnet/minecraft/world/gen/densityfunction/DensityFunction$Noise;getMaxValue()D- intermediary - method_42355- Lnet/minecraft/class_6910$class_7270;method_42355()D- official - a- Lecm$c;a()D
 
- 
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. All components in this record class are compared withObjects::equals(Object,Object).
- 
noiseDataReturns the value of thenoiseDatarecord component.- Returns:
- the value of the noiseDatarecord component
 
- 
noiseReturns the value of thenoiserecord component.- Returns:
- the value of the noiserecord component
 
 
-