Record Class CameraFovState
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.CameraFovState
public record CameraFovState(long sequence, float elapsed, CameraFovState.Transition transition, CameraFovState.Command command)
extends Record
A resolved FOV transition and, for live delivery, the command that changed it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordCore retains the unresolved local projection, without substituting a fixed FOV. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final floatstatic final com.viaversion.viaversion.api.type.Type<CameraFovState> -
Constructor Summary
ConstructorsConstructorDescriptionCameraFovState(long sequence, float elapsed, CameraFovState.Transition transition, CameraFovState.Command command) Creates an instance of aCameraFovStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.floatelapsed()Returns the value of theelapsedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransitionrecord component.
-
Field Details
-
CHANNEL
- See Also:
-
DEGREES_TO_RADIANS
public static final float DEGREES_TO_RADIANS- See Also:
-
TYPE
-
-
Constructor Details
-
CameraFovState
public CameraFovState(long sequence, float elapsed, CameraFovState.Transition transition, CameraFovState.Command command) Creates an instance of aCameraFovStaterecord class.- Parameters:
sequence- the value for thesequencerecord componentelapsed- the value for theelapsedrecord componenttransition- the value for thetransitionrecord componentcommand- the value for thecommandrecord 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. -
sequence
public long sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-
elapsed
public float elapsed()Returns the value of theelapsedrecord component.- Returns:
- the value of the
elapsedrecord component
-
transition
Returns the value of thetransitionrecord component.- Returns:
- the value of the
transitionrecord component
-
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-