Record Class Blender.BlendingOutput
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.blending.Blender.BlendingOutput
- Enclosing class:
Blender
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thealpharecord component.private final doubleThe field for theblendingOffsetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlendingOutput(double alpha, double blendingOffset) Creates an instance of aBlendingOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublealpha()Returns the value of thealpharecord component.doubleReturns the value of theblendingOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
alpha
private final double alphaThe field for thealpharecord component. -
blendingOffset
private final double blendingOffsetThe field for theblendingOffsetrecord component.
-
-
Constructor Details
-
BlendingOutput
public BlendingOutput(double alpha, double blendingOffset) Creates an instance of aBlendingOutputrecord class.- Parameters:
alpha- the value for thealpharecord componentblendingOffset- the value for theblendingOffsetrecord component
-
-
Method Details
-
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 with thecomparemethod from their corresponding wrapper classes. -
alpha
public double alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
blendingOffset
public double blendingOffset()Returns the value of theblendingOffsetrecord component.- Returns:
- the value of the
blendingOffsetrecord component
-