Record Class DensityFunctionTypes.LinearOperation
java.lang.Object
java.lang.Record
net.minecraft.world.gen.densityfunction.DensityFunctionTypes.LinearOperation
- Record Components:
specificType-input-minValue-maxValue-argument-
- All Implemented Interfaces:
DensityFunction,DensityFunctionTypes.BinaryOperationLike,DensityFunctionTypes.Unary
- Enclosing class:
DensityFunctionTypes
private static record DensityFunctionTypes.LinearOperation(DensityFunctionTypes.LinearOperation.SpecificType specificType, DensityFunction input, double minValue, double maxValue, double argument)
extends Record
implements DensityFunctionTypes.Unary, DensityFunctionTypes.BinaryOperationLike
- Mappings:
Namespace Name named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$LinearOperationintermediary net/minecraft/class_6916$class_6929official esf$onamed specificTypeintermediary comp_385official bnamed inputintermediary comp_380official fnamed minValueintermediary comp_377official gnamed maxValueintermediary comp_378official hnamed argumentintermediary comp_386official i
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumNested classes/interfaces inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
DensityFunction.Base, DensityFunction.DensityFunctionVisitor, DensityFunction.EachApplier, DensityFunction.Noise, DensityFunction.NoisePos, DensityFunction.UnblendedNoisePosNested classes/interfaces inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionTypes.BinaryOperationLike
DensityFunctionTypes.BinaryOperationLike.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for theargumentrecord component.private final DensityFunctionThe field for theinputrecord component.private final doubleThe field for themaxValuerecord component.private final doubleThe field for theminValuerecord component.private final DensityFunctionTypes.LinearOperation.SpecificTypeThe field for thespecificTyperecord component.Fields inherited from interface net.minecraft.world.gen.densityfunction.DensityFunction
CODEC, FUNCTION_CODEC, REGISTRY_ENTRY_CODECFields inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionTypes.BinaryOperationLike
LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionLinearOperation(DensityFunctionTypes.LinearOperation.SpecificType specificType, DensityFunction input, double minValue, double maxValue, double argument) Creates an instance of aLinearOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleapply(double density) Applies the visitor to every child density function andthis.doubleargument()Returns the value of theargumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.doublemaxValue()Returns the value of themaxValuerecord component.doubleminValue()Returns the value of theminValuerecord component.Returns the value of thespecificTyperecord component.final StringtoString()Returns a string representation of this record class.type()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, invert, quarterNegative, square, squeezeMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionTypes.BinaryOperationLike
getCodecHolderMethods inherited from interface net.minecraft.world.gen.densityfunction.DensityFunctionTypes.Unary
fill, sample
-
Field Details
-
specificType
The field for thespecificTyperecord component. -
input
The field for theinputrecord component. -
minValue
private final double minValueThe field for theminValuerecord component. -
maxValue
private final double maxValueThe field for themaxValuerecord component. -
argument
private final double argumentThe field for theargumentrecord component.
-
-
Constructor Details
-
LinearOperation
LinearOperation(DensityFunctionTypes.LinearOperation.SpecificType specificType, DensityFunction input, double minValue, double maxValue, double argument) Creates an instance of aLinearOperationrecord class.- Parameters:
specificType- the value for thespecificTyperecord componentinput- the value for theinputrecord componentminValue- the value for theminValuerecord componentmaxValue- the value for themaxValuerecord componentargument- the value for theargumentrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceDensityFunctionTypes.BinaryOperationLike- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$BinaryOperationLike;type()Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$BinaryOperationLike$Type;intermediary comp_374Lnet/minecraft/class_6916$class_7055;comp_374()Lnet/minecraft/class_6916$class_7055$class_6918;official kLesf$z;k()Lesf$z$a;
-
argument1
- Specified by:
argument1in interfaceDensityFunctionTypes.BinaryOperationLike- Mappings:
Namespace Name Mixin selector named argument1Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$BinaryOperationLike;argument1()Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary comp_375Lnet/minecraft/class_6916$class_7055;comp_375()Lnet/minecraft/class_6910;official lLesf$z;l()Lese;
-
argument2
- Specified by:
argument2in interfaceDensityFunctionTypes.BinaryOperationLike- Mappings:
Namespace Name Mixin selector named argument2Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$BinaryOperationLike;argument2()Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary comp_376Lnet/minecraft/class_6916$class_7055;comp_376()Lnet/minecraft/class_6910;official mLesf$z;m()Lese;
-
apply
public double apply(double density) - Specified by:
applyin interfaceDensityFunctionTypes.Unary- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$Unary;apply(D)Dintermediary method_40520Lnet/minecraft/class_6916$class_6932;method_40520(D)Dofficial aLesf$q;a(D)D
-
apply
Applies the visitor to every child density function andthis.- Specified by:
applyin interfaceDensityFunction- Parameters:
visitor- the visitor that should be applied to this density function- Returns:
- the resulting density function
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/world/gen/densityfunction/DensityFunction;apply(Lnet/minecraft/world/gen/densityfunction/DensityFunction$DensityFunctionVisitor;)Lnet/minecraft/world/gen/densityfunction/DensityFunction;intermediary method_40469Lnet/minecraft/class_6910;method_40469(Lnet/minecraft/class_6910$class_6915;)Lnet/minecraft/class_6910;official aLese;a(Lese$f;)Lese;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
specificType
Returns the value of thespecificTyperecord component.- Returns:
- the value of the
specificTyperecord component
-
input
Returns the value of theinputrecord component.- Specified by:
inputin interfaceDensityFunctionTypes.Unary- Returns:
- the value of the
inputrecord component
-
minValue
public double minValue()Returns the value of theminValuerecord component.- Specified by:
minValuein interfaceDensityFunction- Returns:
- the value of the
minValuerecord component
-
maxValue
public double maxValue()Returns the value of themaxValuerecord component.- Specified by:
maxValuein interfaceDensityFunction- Returns:
- the value of the
maxValuerecord component
-
argument
public double argument()Returns the value of theargumentrecord component.- Returns:
- the value of the
argumentrecord component
-