Record Class BedrockLightmapParameters.Color
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.light.BedrockLightmapParameters.Color
- Enclosing class:
BedrockLightmapParameters
public static record BedrockLightmapParameters.Color(float red, float green, float blue, float alpha)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionColor(float red, float green, float blue, float alpha) Creates an instance of aColorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.floatblue()Returns the value of thebluerecord component.final booleanIndicates whether some other object is "equal to" this one.floatgreen()Returns the value of thegreenrecord component.final inthashCode()Returns a hash code value for this object.floatred()Returns the value of theredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Color
public Color(float red, float green, float blue, float alpha) Creates an instance of aColorrecord class.- Parameters:
red- the value for theredrecord componentgreen- the value for thegreenrecord componentblue- the value for thebluerecord componentalpha- the value for thealpharecord 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. -
red
public float red()Returns the value of theredrecord component.- Returns:
- the value of the
redrecord component
-
green
public float green()Returns the value of thegreenrecord component.- Returns:
- the value of the
greenrecord component
-
blue
public float blue()Returns the value of thebluerecord component.- Returns:
- the value of the
bluerecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-