Record Class BedrockLightmapMath.Sky
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.light.BedrockLightmapMath.Sky
- Enclosing class:
BedrockLightmapMath
public static record BedrockLightmapMath.Sky(BedrockLightmapParameters.Color color, float factor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSky(BedrockLightmapParameters.Color color, float factor) Creates an instance of aSkyrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord 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.
-
Constructor Details
-
Sky
Creates an instance of aSkyrecord class.- Parameters:
color- the value for thecolorrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
factor
public float factor()Returns the value of thefactorrecord component.- Returns:
- the value of the
factorrecord component
-