Record Class BedrockActorGlint
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockActorGlint
- All Implemented Interfaces:
net.minecraft.client.renderer.DynamicGpuDataStorage.DynamicGpuData
public record BedrockActorGlint(float firstOffset, float secondOffset, float firstAngle, float secondAngle, float scaleU, float scaleV, float red, float green, float blue, float alpha, float tileRed, float tileGreen, float tileBlue, float tileAlpha)
extends Record
implements net.minecraft.client.renderer.DynamicGpuDataStorage.DynamicGpuData
Immutable native glint constants for one prepared draw, without an assumed engine clock.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBedrockActorGlint(float firstOffset, float secondOffset, float firstAngle, float secondAngle, float scaleU, float scaleV, float red, float green, float blue, float alpha, float tileRed, float tileGreen, float tileBlue, float tileAlpha) Creates an instance of aBedrockActorGlintrecord 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.floatReturns the value of thefirstAnglerecord component.floatReturns the value of thefirstOffsetrecord component.floatgreen()Returns the value of thegreenrecord component.final inthashCode()Returns a hash code value for this object.floatred()Returns the value of theredrecord component.static BedrockActorGlintsample(float frameTimeSeconds, float speed, float strength, float scaleU, float scaleV, float tileRed, float tileGreen, float tileBlue, float tileAlpha) Samples the target's clock wrapper; frame time and user options remain caller-owned inputs.floatscaleU()Returns the value of thescaleUrecord component.floatscaleV()Returns the value of thescaleVrecord component.floatReturns the value of thesecondAnglerecord component.floatReturns the value of thesecondOffsetrecord component.floatReturns the value of thetileAlpharecord component.floattileBlue()Returns the value of thetileBluerecord component.floatReturns the value of thetileGreenrecord component.floattileRed()Returns the value of thetileRedrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(ByteBuffer buffer)
-
Field Details
-
UNIFORM_SIZE
public static final int UNIFORM_SIZE- See Also:
-
-
Constructor Details
-
BedrockActorGlint
public BedrockActorGlint(float firstOffset, float secondOffset, float firstAngle, float secondAngle, float scaleU, float scaleV, float red, float green, float blue, float alpha, float tileRed, float tileGreen, float tileBlue, float tileAlpha) Creates an instance of aBedrockActorGlintrecord class.- Parameters:
firstOffset- the value for thefirstOffsetrecord componentsecondOffset- the value for thesecondOffsetrecord componentfirstAngle- the value for thefirstAnglerecord componentsecondAngle- the value for thesecondAnglerecord componentscaleU- the value for thescaleUrecord componentscaleV- the value for thescaleVrecord componentred- the value for theredrecord componentgreen- the value for thegreenrecord componentblue- the value for thebluerecord componentalpha- the value for thealpharecord componenttileRed- the value for thetileRedrecord componenttileGreen- the value for thetileGreenrecord componenttileBlue- the value for thetileBluerecord componenttileAlpha- the value for thetileAlpharecord component
-
-
Method Details
-
sample
public static BedrockActorGlint sample(float frameTimeSeconds, float speed, float strength, float scaleU, float scaleV, float tileRed, float tileGreen, float tileBlue, float tileAlpha) Samples the target's clock wrapper; frame time and user options remain caller-owned inputs. -
write
- Specified by:
writein interfacenet.minecraft.client.renderer.DynamicGpuDataStorage.DynamicGpuData
-
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. -
firstOffset
public float firstOffset()Returns the value of thefirstOffsetrecord component.- Returns:
- the value of the
firstOffsetrecord component
-
secondOffset
public float secondOffset()Returns the value of thesecondOffsetrecord component.- Returns:
- the value of the
secondOffsetrecord component
-
firstAngle
public float firstAngle()Returns the value of thefirstAnglerecord component.- Returns:
- the value of the
firstAnglerecord component
-
secondAngle
public float secondAngle()Returns the value of thesecondAnglerecord component.- Returns:
- the value of the
secondAnglerecord component
-
scaleU
public float scaleU()Returns the value of thescaleUrecord component.- Returns:
- the value of the
scaleUrecord component
-
scaleV
public float scaleV()Returns the value of thescaleVrecord component.- Returns:
- the value of the
scaleVrecord component
-
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
-
tileRed
public float tileRed()Returns the value of thetileRedrecord component.- Returns:
- the value of the
tileRedrecord component
-
tileGreen
public float tileGreen()Returns the value of thetileGreenrecord component.- Returns:
- the value of the
tileGreenrecord component
-
tileBlue
public float tileBlue()Returns the value of thetileBluerecord component.- Returns:
- the value of the
tileBluerecord component
-
tileAlpha
public float tileAlpha()Returns the value of thetileAlpharecord component.- Returns:
- the value of the
tileAlpharecord component
-