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 floatThe field for thealpharecord component.private final floatThe field for theblendingOffsetrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBlendingOutput(float alpha, float blendingOffset) Creates an instance of aBlendingOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.floatReturns 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 float alphaThe field for thealpharecord component. -
blendingOffset
private final float blendingOffsetThe field for theblendingOffsetrecord component.
-
-
Constructor Details
-
BlendingOutput
protected BlendingOutput(float alpha, float 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 float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
blendingOffset
public float blendingOffset()Returns the value of theblendingOffsetrecord component.- Returns:
- the value of the
blendingOffsetrecord component
-