Record Class ShiftNoiseFunction.ShiftB
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.densityfunction.generator.ShiftNoiseFunction.ShiftB
- All Implemented Interfaces:
DensityFunction, ShiftNoiseFunction
- Enclosing interface:
ShiftNoiseFunction
public static record ShiftNoiseFunction.ShiftB(Holder<NormalNoise> offsetNoise)
extends Record
implements ShiftNoiseFunction
-
Nested Class Summary
Nested classes/interfaces inherited from interface DensityFunction
DensityFunction.Axes, DensityFunction.CompileContextNested classes/interfaces inherited from interface ShiftNoiseFunction
ShiftNoiseFunction.Shift, ShiftNoiseFunction.ShiftA, ShiftNoiseFunction.ShiftB -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ShiftNoiseFunction.ShiftB> private final Holder<NormalNoise> The field for theoffsetNoiserecord component.Fields inherited from interface DensityFunction
ALL_AXES, AXIS_X, AXIS_Y, AXIS_Z, NO_AXES, REFERENCE_CODECFields inherited from interface ShiftNoiseFunction
COORDINATE_FACTOR, VALUE_FACTOR -
Constructor Summary
ConstructorsConstructorDescriptionShiftB(Holder<NormalNoise> offsetNoise) Creates an instance of aShiftBrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<ShiftNoiseFunction.ShiftB> codec()intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoffsetNoiserecord component.rewriteChildren(DfRewriteRule rule) final StringtoString()Returns a string representation of this record class.Methods inherited from interface DensityFunction
abs, add, add, clamp, cube, div, div, halfNegative, log, mul, mul, negate, pow, pow, quarterNegative, reciprocal, sign, sqrt, square, squeeze, sub, subMethods inherited from interface ShiftNoiseFunction
range
-
Field Details
-
offsetNoise
The field for theoffsetNoiserecord component. -
CODEC
-
-
Constructor Details
-
ShiftB
Creates an instance of aShiftBrecord class.- Parameters:
offsetNoise- the value for theoffsetNoiserecord component
-
-
Method Details
-
compileSampler
- Specified by:
compileSamplerin interfaceDensityFunction
-
rewriteChildren
- Specified by:
rewriteChildrenin interfaceDensityFunction
-
domainAxes
public int domainAxes()- Specified by:
domainAxesin interfaceDensityFunction
-
codec
- Specified by:
codecin interfaceDensityFunction- Specified by:
codecin interfaceShiftNoiseFunction
-
toString
-
hashCode
-
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). -
offsetNoise
Returns the value of theoffsetNoiserecord component.- Specified by:
offsetNoisein interfaceShiftNoiseFunction- Returns:
- the value of the
offsetNoiserecord component
-