Record Class GhostAnimation
java.lang.Object
java.lang.Record
com.iantapply.conflux.api.GhostAnimation
- Record Components:
protocolVersion- wire protocol versionrealmId- logical network realmnodeId- unique identifier of the node that produced the animationsessionId- unique identifier of the producing processplayerId- unique identifier of the animated playertype- visual action to playsequence- monotonically increasing animation sequence for the source nodesentAtEpochMilli- time at which the source node sent the animation, in Unix epoch milliseconds
-
Constructor Summary
ConstructorsConstructorDescriptionGhostAnimation(int protocolVersion, String realmId, String nodeId, UUID sessionId, UUID playerId, GhostAnimationType type, long sequence, long sentAtEpochMilli) Validates and creates a ghost animation. -
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.nodeId()Returns the value of thenodeIdrecord component.playerId()Returns the value of theplayerIdrecord component.intReturns the value of theprotocolVersionrecord component.realmId()Returns the value of therealmIdrecord component.longReturns the value of thesentAtEpochMillirecord component.longsequence()Returns the value of thesequencerecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
GhostAnimation
public GhostAnimation(int protocolVersion, String realmId, String nodeId, UUID sessionId, UUID playerId, GhostAnimationType type, long sequence, long sentAtEpochMilli) Validates and creates a ghost animation.
-
-
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. -
protocolVersion
public int protocolVersion()Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
realmId
-
nodeId
-
sessionId
-
playerId
-
type
-
sequence
-
sentAtEpochMilli
public long sentAtEpochMilli()Returns the value of thesentAtEpochMillirecord component.- Returns:
- the value of the
sentAtEpochMillirecord component
-