Record Class NexoriPlayerMatchLifecycleEvent
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriPlayerMatchLifecycleEvent
- Record Components:
match- match-level lifecycle snapshot.playerUuid- player associated with this event.playerName- player name known by Nexori at event time.playerAssignmentId- backend player assignment id, when known.reason- public reason associated with this player event.eventAtEpochMs- event timestamp.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriPlayerMatchLifecycleEvent(NexoriMatchLifecycleEvent match, UUID playerUuid, String playerName, String playerAssignmentId, String reason, long eventAtEpochMs) Creates an instance of aNexoriPlayerMatchLifecycleEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theeventAtEpochMsrecord component.final inthashCode()Returns a hash code value for this object.match()Returns the value of thematchrecord component.Returns the value of theplayerAssignmentIdrecord component.Returns the value of theplayerNamerecord component.Returns the value of theplayerUuidrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriPlayerMatchLifecycleEvent
public NexoriPlayerMatchLifecycleEvent(NexoriMatchLifecycleEvent match, UUID playerUuid, String playerName, String playerAssignmentId, String reason, long eventAtEpochMs) Creates an instance of aNexoriPlayerMatchLifecycleEventrecord class.- Parameters:
match- the value for thematchrecord componentplayerUuid- the value for theplayerUuidrecord componentplayerName- the value for theplayerNamerecord componentplayerAssignmentId- the value for theplayerAssignmentIdrecord componentreason- the value for thereasonrecord componenteventAtEpochMs- the value for theeventAtEpochMsrecord 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. -
match
-
playerUuid
Returns the value of theplayerUuidrecord component.- Returns:
- the value of the
playerUuidrecord component
-
playerName
Returns the value of theplayerNamerecord component.- Returns:
- the value of the
playerNamerecord component
-
playerAssignmentId
Returns the value of theplayerAssignmentIdrecord component.- Returns:
- the value of the
playerAssignmentIdrecord component
-
reason
-
eventAtEpochMs
public long eventAtEpochMs()Returns the value of theeventAtEpochMsrecord component.- Returns:
- the value of the
eventAtEpochMsrecord component
-