Record Class BlendToGray
java.lang.Object
java.lang.Record
net.minestom.server.world.attribute.BlendToGray
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlendToGray(float brightness, float factor) Creates an instance of aBlendToGrayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thebrightnessrecord component.final booleanIndicates whether some other object is "equal to" this one.floatfactor()Returns the value of thefactorrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
BlendToGray
public BlendToGray(float brightness, float factor) Creates an instance of aBlendToGrayrecord class.- Parameters:
brightness- the value for thebrightnessrecord componentfactor- the value for thefactorrecord 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. -
brightness
public float brightness()Returns the value of thebrightnessrecord component.- Returns:
- the value of the
brightnessrecord component
-
factor
public float factor()Returns the value of thefactorrecord component.- Returns:
- the value of the
factorrecord component
-