Record Class Blender.BlendingOutput
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.blending.Blender.BlendingOutput
- Enclosing class:
Blender
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
The field for thealpha
record component.private final double
The field for theblendingOffset
record component. -
Constructor Summary
ConstructorDescriptionBlendingOutput
(double alpha, double blendingOffset) Creates an instance of aBlendingOutput
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
alpha()
Returns the value of thealpha
record component.double
Returns the value of theblendingOffset
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
alpha
private final double alphaThe field for thealpha
record component. -
blendingOffset
private final double blendingOffsetThe field for theblendingOffset
record component.
-
-
Constructor Details
-
BlendingOutput
public BlendingOutput(double alpha, double blendingOffset) Creates an instance of aBlendingOutput
record class.- Parameters:
alpha
- the value for thealpha
record componentblendingOffset
- the value for theblendingOffset
record component
-
-
Method Details
-
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 with '=='. -
alpha
public double alpha()Returns the value of thealpha
record component.- Returns:
- the value of the
alpha
record component
-
blendingOffset
public double blendingOffset()Returns the value of theblendingOffset
record component.- Returns:
- the value of the
blendingOffset
record component
-