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