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 official dak$c
intermediary net/minecraft/class_6910$class_7270
named net/minecraft/world/gen/densityfunction/DensityFunction$Noise
official b
intermediary comp_662
named noiseData
official c
intermediary comp_663
named noise
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DensityFunction.Noise>
private final @Nullable DoublePerlinNoiseSampler
The field for thenoise
record component.private final RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters>
The field for thenoiseData
record component. -
Constructor Summary
ConstructorsConstructorDescriptionNoise
(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> registryEntry, @Nullable DoublePerlinNoiseSampler doublePerlinNoiseSampler) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.double
final int
hashCode()
Returns a hash code value for this object.noise()
Returns the value of thenoise
record component.Returns the value of thenoiseData
record component.double
sample
(double x, double y, double z) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
noiseData
The field for thenoiseData
record component. -
noise
The field for thenoise
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldak$c;a:Lcom/mojang/serialization/Codec;
intermediary field_38248
Lnet/minecraft/class_6910$class_7270;field_38248:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/world/gen/densityfunction/DensityFunction$Noise;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Noise
- Mappings:
Namespace Name Mixin selector official <init>
Ldak$c;<init>(Lhc;)V
intermediary <init>
Lnet/minecraft/class_6910$class_7270;<init>(Lnet/minecraft/class_6880;)V
named <init>
Lnet/minecraft/world/gen/densityfunction/DensityFunction$Noise;<init>(Lnet/minecraft/util/registry/RegistryEntry;)V
-
Noise
public Noise(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> registryEntry, @Nullable @Nullable DoublePerlinNoiseSampler doublePerlinNoiseSampler)
-
-
Method Details
-
sample
public double sample(double x, double y, double z) - Mappings:
Namespace Name Mixin selector official a
Ldak$c;a(DDD)D
intermediary method_42356
Lnet/minecraft/class_6910$class_7270;method_42356(DDD)D
named sample
Lnet/minecraft/world/gen/densityfunction/DensityFunction$Noise;sample(DDD)D
-
getMaxValue
public double getMaxValue()- Mappings:
Namespace Name Mixin selector official a
Ldak$c;a()D
intermediary method_42355
Lnet/minecraft/class_6910$class_7270;method_42355()D
named getMaxValue
Lnet/minecraft/world/gen/densityfunction/DensityFunction$Noise;getMaxValue()D
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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)
. -
noiseData
Returns the value of thenoiseData
record component.- Returns:
- the value of the
noiseData
record component
-
noise
Returns the value of thenoise
record component.- Returns:
- the value of the
noise
record component
-