Record Class DensityFunctionTypes.BinaryOperation
java.lang.Object
java.lang.Record
net.minecraft.world.gen.densityfunction.DensityFunctionTypes.BinaryOperation
- Record Components:
type-argument1-argument2-minValue-maxValue-
- All Implemented Interfaces:
DensityFunction,DensityFunctionTypes.BinaryOperationLike
- Enclosing class:
DensityFunctionTypes
private static record DensityFunctionTypes.BinaryOperation(DensityFunctionTypes.BinaryOperationLike.Type type, DensityFunction argument1, DensityFunction argument2, double minValue, double maxValue)
extends Record
implements DensityFunctionTypes.BinaryOperationLike
- Mappings:
Namespace Name named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$BinaryOperationintermediary net/minecraft/class_6916$class_6917official epk$anamed typeintermediary comp_374official bnamed argument1intermediary comp_375official fnamed argument2intermediary comp_376official gnamed minValueintermediary comp_377official hnamed maxValueintermediary comp_378official i
-
Nested Class Summary
Nested 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 DensityFunctionThe field for theargument1record component.private final DensityFunctionThe field for theargument2record component.private final doubleThe field for themaxValuerecord component.private final doubleThe field for theminValuerecord component.private final DensityFunctionTypes.BinaryOperationLike.TypeThe field for thetyperecord 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
ConstructorsConstructorDescriptionBinaryOperation(DensityFunctionTypes.BinaryOperationLike.Type type, DensityFunction densityFunction, DensityFunction densityFunction2, double double2, double double3) -
Method Summary
Modifier and TypeMethodDescriptionApplies the visitor to every child density function andthis.Returns the value of theargument1record component.Returns the value of theargument2record component.final booleanIndicates whether some other object is "equal to" this one.voidfill(double[] densities, DensityFunction.EachApplier applier) Fills an array of densities usingthisdensity function and theDensityFunction.EachApplier.final inthashCode()Returns a hash code value for this object.doublemaxValue()Returns the value of themaxValuerecord component.doubleminValue()Returns the value of theminValuerecord component.doubleReturns the density value for the given block position.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.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
getCodecHolder
-
Field Details
-
type
The field for thetyperecord component. -
argument1
The field for theargument1record component. -
argument2
The field for theargument2record component. -
minValue
private final double minValueThe field for theminValuerecord component. -
maxValue
private final double maxValueThe field for themaxValuerecord component.
-
-
Constructor Details
-
BinaryOperation
BinaryOperation(DensityFunctionTypes.BinaryOperationLike.Type type, DensityFunction densityFunction, DensityFunction densityFunction2, double double2, double double3)
-
-
Method Details
-
sample
Returns the density value for the given block position.- Specified by:
samplein interfaceDensityFunction- Parameters:
pos- the block position- Returns:
- the density value for the given block position
- Mappings:
Namespace Name Mixin selector named sampleLnet/minecraft/world/gen/densityfunction/DensityFunction;sample(Lnet/minecraft/world/gen/densityfunction/DensityFunction$NoisePos;)Dintermediary method_40464Lnet/minecraft/class_6910;method_40464(Lnet/minecraft/class_6910$class_6912;)Dofficial aLepj;a(Lepj$b;)D
-
fill
Fills an array of densities usingthisdensity function and theDensityFunction.EachApplier.- Specified by:
fillin interfaceDensityFunction- Parameters:
densities- the array of densities to fill, like a buffer or a cacheapplier- theEachApplierto use. It has a method for filling the array, as well as to get a block position for an index- Mappings:
Namespace Name Mixin selector named fillLnet/minecraft/world/gen/densityfunction/DensityFunction;fill([DLnet/minecraft/world/gen/densityfunction/DensityFunction$EachApplier;)Vintermediary method_40470Lnet/minecraft/class_6910;method_40470([DLnet/minecraft/class_6910$class_6911;)Vofficial aLepj;a([DLepj$a;)V
-
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 aLepj;a(Lepj$f;)Lepj;
-
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
-
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 '=='. -
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceDensityFunctionTypes.BinaryOperationLike- Returns:
- the value of the
typerecord component
-
argument1
Returns the value of theargument1record component.- Specified by:
argument1in interfaceDensityFunctionTypes.BinaryOperationLike- Returns:
- the value of the
argument1record component
-
argument2
Returns the value of theargument2record component.- Specified by:
argument2in interfaceDensityFunctionTypes.BinaryOperationLike- Returns:
- the value of the
argument2record component
-