Record Class BedrockLightmapParameters
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.light.BedrockLightmapParameters
public record BedrockLightmapParameters(BedrockLightmapParameters.Levels levels, BedrockLightmapParameters.Color skyColor, float skyFactor, float gammaFactor, float darknessPulse, float nightVision, boolean neutralSky)
extends Record
A render-thread snapshot of the native light-image builder inputs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBedrockLightmapParameters(BedrockLightmapParameters.Levels levels, BedrockLightmapParameters.Color skyColor, float skyFactor, float gammaFactor, float darknessPulse, float nightVision, boolean neutralSky) Creates an instance of aBedrockLightmapParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thedarknessPulserecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thegammaFactorrecord component.final inthashCode()Returns a hash code value for this object.levels()Returns the value of thelevelsrecord component.booleanReturns the value of theneutralSkyrecord component.floatReturns the value of thenightVisionrecord component.skyColor()Returns the value of theskyColorrecord component.floatReturns the value of theskyFactorrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(ByteBuffer buffer)
-
Field Details
-
UNIFORM_SIZE
public static final int UNIFORM_SIZE
-
-
Constructor Details
-
BedrockLightmapParameters
public BedrockLightmapParameters(BedrockLightmapParameters.Levels levels, BedrockLightmapParameters.Color skyColor, float skyFactor, float gammaFactor, float darknessPulse, float nightVision, boolean neutralSky) Creates an instance of aBedrockLightmapParametersrecord class.- Parameters:
levels- the value for thelevelsrecord componentskyColor- the value for theskyColorrecord componentskyFactor- the value for theskyFactorrecord componentgammaFactor- the value for thegammaFactorrecord componentdarknessPulse- the value for thedarknessPulserecord componentnightVision- the value for thenightVisionrecord componentneutralSky- the value for theneutralSkyrecord component
-
-
Method Details
-
write
-
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. -
levels
Returns the value of thelevelsrecord component.- Returns:
- the value of the
levelsrecord component
-
skyColor
Returns the value of theskyColorrecord component.- Returns:
- the value of the
skyColorrecord component
-
skyFactor
public float skyFactor()Returns the value of theskyFactorrecord component.- Returns:
- the value of the
skyFactorrecord component
-
gammaFactor
public float gammaFactor()Returns the value of thegammaFactorrecord component.- Returns:
- the value of the
gammaFactorrecord component
-
darknessPulse
public float darknessPulse()Returns the value of thedarknessPulserecord component.- Returns:
- the value of the
darknessPulserecord component
-
nightVision
public float nightVision()Returns the value of thenightVisionrecord component.- Returns:
- the value of the
nightVisionrecord component
-
neutralSky
public boolean neutralSky()Returns the value of theneutralSkyrecord component.- Returns:
- the value of the
neutralSkyrecord component
-