Record Class BedrockActorGlintFrames.Frame
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockActorGlintFrames.Frame
- Enclosing class:
BedrockActorGlintFrames
public static record BedrockActorGlintFrames.Frame(float seconds, float speed, float strength)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFrame(float seconds, float speed, float strength) Creates an instance of aFramerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sample(boolean nether, float scaleU, float scaleV) Draw lighting is sampled from each vertex's actual lightmap by the frame-glint pipeline.floatseconds()Returns the value of thesecondsrecord component.floatspeed()Returns the value of thespeedrecord component.floatstrength()Returns the value of thestrengthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Frame
public Frame(float seconds, float speed, float strength) Creates an instance of aFramerecord class.- Parameters:
seconds- the value for thesecondsrecord componentspeed- the value for thespeedrecord componentstrength- the value for thestrengthrecord component
-
-
Method Details
-
sample
Draw lighting is sampled from each vertex's actual lightmap by the frame-glint pipeline. -
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. -
seconds
public float seconds()Returns the value of thesecondsrecord component.- Returns:
- the value of the
secondsrecord component
-
speed
public float speed()Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-
strength
public float strength()Returns the value of thestrengthrecord component.- Returns:
- the value of the
strengthrecord component
-