Record Class DensityFunctionTypes.ShiftA
java.lang.Object
java.lang.Record
net.minecraft.world.gen.densityfunction.DensityFunctionTypes.ShiftA
- Record Components:
noiseData-offsetNoise-
- All Implemented Interfaces:
DensityFunction,DensityFunction.class_6913,DensityFunctionTypes.class_6939
- Enclosing class:
DensityFunctionTypes
protected static record DensityFunctionTypes.ShiftA(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> noiseData, @Nullable DoublePerlinNoiseSampler offsetNoise)
extends Record
implements DensityFunctionTypes.class_6939
- Mappings:
Namespace Name official ctq$sintermediary net/minecraft/class_6916$class_6937named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$ShiftAofficial aintermediary comp_471named noiseDataofficial eintermediary comp_395named offsetNoise
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
DensityFunction.class_6911, DensityFunction.class_6913, DensityFunction.DensityFunctionVisitor, DensityFunction.NoisePos, DensityFunction.UnblendedNoisePos -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final com.mojang.serialization.Codec<DensityFunctionTypes.ShiftA>private final RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters>The field for thenoiseDatarecord component.private final @Nullable DoublePerlinNoiseSamplerThe field for theoffsetNoiserecord component.Fields inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
field_37057, field_37059, REGISTRY_ENTRY_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedShiftA(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> registryEntry, @Nullable DoublePerlinNoiseSampler doublePerlinNoiseSampler) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.Codec<? extends DensityFunction>getCodec()final inthashCode()Returns a hash code value for this object.method_41086(DoublePerlinNoiseSampler doublePerlinNoiseSampler) doublefinal StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeezeMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction.class_6913
apply, method_40470Methods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionTypes.class_6939
maxValue, method_40525, minValue
-
Field Details
-
noiseData
The field for thenoiseDatarecord component. -
offsetNoise
The field for theoffsetNoiserecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official fLctq$s;f:Lcom/mojang/serialization/Codec;intermediary field_37095Lnet/minecraft/class_6916$class_6937;field_37095:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$ShiftA;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ShiftA
protected ShiftA(RegistryEntry<DoublePerlinNoiseSampler.NoiseParameters> registryEntry, @Nullable @Nullable DoublePerlinNoiseSampler doublePerlinNoiseSampler)
-
-
Method Details
-
sample
- Specified by:
samplein interfaceDensityFunction- Mappings:
Namespace Name Mixin selector official aLctp;a(Lctp$b;)Dintermediary method_40464Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)Dnamed sampleLnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)D
-
method_41086
public DensityFunctionTypes.class_6939 method_41086(DoublePerlinNoiseSampler doublePerlinNoiseSampler) - Specified by:
method_41086in interfaceDensityFunctionTypes.class_6939- Mappings:
Namespace Name Mixin selector official aLctq$u;a(Ldic;)Lctq$u;intermediary method_41086Lnet/minecraft/class_6916$class_6939;method_41086(Lnet/minecraft/class_5216;)Lnet/minecraft/class_6916$class_6939;named method_41086Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$class_6939;method_41086(Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler;)Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$class_6939;
-
getCodec
- Specified by:
getCodecin interfaceDensityFunction- Mappings:
Namespace Name Mixin selector official cLctp;c()Lcom/mojang/serialization/Codec;intermediary method_41062Lnet/minecraft/class_6910;method_41062()Lcom/mojang/serialization/Codec;named getCodecLnet/minecraft/world/gen/densityfunction/DensityFunction;getCodec()Lcom/mojang/serialization/Codec;
-
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
- Specified by:
noiseDatain interfaceDensityFunctionTypes.class_6939- Mappings:
Namespace Name Mixin selector official jLctq$u;j()Lgs;intermediary comp_471Lnet/minecraft/class_6916$class_6939;comp_471()Lnet/minecraft/class_6880;named noiseDataLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$class_6939;noiseData()Lnet/minecraft/util/registry/RegistryEntry;
-
offsetNoise
- Specified by:
offsetNoisein interfaceDensityFunctionTypes.class_6939- Mappings:
Namespace Name Mixin selector official kLctq$u;k()Ldic;intermediary comp_395Lnet/minecraft/class_6916$class_6939;comp_395()Lnet/minecraft/class_5216;named offsetNoiseLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$class_6939;offsetNoise()Lnet/minecraft/util/math/noise/DoublePerlinNoiseSampler;
-