Record Class CameraTrackingState.Target
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.CameraTrackingState.Target
- Enclosing class:
CameraTrackingState
public static record CameraTrackingState.Target(long actorUniqueId, CameraPose.Vector offset)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTarget(long actorUniqueId, CameraPose.Vector offset) Creates an instance of aTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theactorUniqueIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Target
Creates an instance of aTargetrecord class.- Parameters:
actorUniqueId- the value for theactorUniqueIdrecord componentoffset- the value for theoffsetrecord 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. -
actorUniqueId
public long actorUniqueId()Returns the value of theactorUniqueIdrecord component.- Returns:
- the value of the
actorUniqueIdrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-