Record Class NexoriMatchLifecycleEvent
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriMatchLifecycleEvent
- Record Components:
matchId- Nexori's local match id.queueId- queue id that produced the match, when known.arenaId- arena id that owns the match, when known.assignmentId- backend assignment id or local assignment id, when known.externalMatchId- backend match id, when this match came from a backend assignment.rulesEngineId- rules engine id that should control gameplay for this match.matchResolutionTriggerId- legacy compatibility field; userulesEngineIdinstead.expectedPlayerUuids- players Nexori expected during the initial placement phase.arrivedPlayerUuids- players that reached the arena runtime.activePlayerUuids- players currently considered active in the match runtime.spectatorPlayerUuids- players marked as logical spectators.requiredResultPlayerUuids- official player set that must have outcomes before final result submission.placementState- current initial placement/start gate snapshot.reason- public reason associated with this lifecycle event.createdAtEpochMs- match creation timestamp.eventAtEpochMs- callback/event timestamp.
public record NexoriMatchLifecycleEvent(String matchId, String queueId, String arenaId, String assignmentId, String externalMatchId, String rulesEngineId, String matchResolutionTriggerId, List<UUID> expectedPlayerUuids, List<UUID> arrivedPlayerUuids, List<UUID> activePlayerUuids, List<UUID> spectatorPlayerUuids, List<UUID> requiredResultPlayerUuids, NexoriMatchPlacementState placementState, String reason, long createdAtEpochMs, long eventAtEpochMs)
extends Record
Immutable public snapshot for a Nexori match lifecycle event.
The event describes the match from Nexori's public point of view at the time the callback
was dispatched. Rules mods should use rulesEngineId() to confirm ownership and
requiredResultPlayerUuids() as part of final result preparation.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriMatchLifecycleEvent(String matchId, String queueId, String arenaId, String assignmentId, String externalMatchId, String rulesEngineId, String matchResolutionTriggerId, List<UUID> expectedPlayerUuids, List<UUID> arrivedPlayerUuids, List<UUID> activePlayerUuids, List<UUID> spectatorPlayerUuids, List<UUID> requiredResultPlayerUuids, NexoriMatchPlacementState placementState, String reason, long createdAtEpochMs, long eventAtEpochMs) Creates an instance of aNexoriMatchLifecycleEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivePlayerUuidsrecord component.arenaId()Returns the value of thearenaIdrecord component.Returns the value of thearrivedPlayerUuidsrecord component.Returns the value of theassignmentIdrecord component.longReturns the value of thecreatedAtEpochMsrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theeventAtEpochMsrecord component.Returns the value of theexpectedPlayerUuidsrecord component.Returns the value of theexternalMatchIdrecord component.final inthashCode()Returns a hash code value for this object.matchId()Returns the value of thematchIdrecord component.Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theplacementStaterecord component.queueId()Returns the value of thequeueIdrecord component.reason()Returns the value of thereasonrecord component.Returns the value of therequiredResultPlayerUuidsrecord component.Returns the value of therulesEngineIdrecord component.Returns the value of thespectatorPlayerUuidsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriMatchLifecycleEvent
public NexoriMatchLifecycleEvent(String matchId, String queueId, String arenaId, String assignmentId, String externalMatchId, String rulesEngineId, @Deprecated(forRemoval=true) String matchResolutionTriggerId, List<UUID> expectedPlayerUuids, List<UUID> arrivedPlayerUuids, List<UUID> activePlayerUuids, List<UUID> spectatorPlayerUuids, List<UUID> requiredResultPlayerUuids, NexoriMatchPlacementState placementState, String reason, long createdAtEpochMs, long eventAtEpochMs) Creates an instance of aNexoriMatchLifecycleEventrecord class.- Parameters:
matchId- the value for thematchIdrecord componentqueueId- the value for thequeueIdrecord componentarenaId- the value for thearenaIdrecord componentassignmentId- the value for theassignmentIdrecord componentexternalMatchId- the value for theexternalMatchIdrecord componentrulesEngineId- the value for therulesEngineIdrecord componentmatchResolutionTriggerId- the value for thematchResolutionTriggerIdrecord componentexpectedPlayerUuids- the value for theexpectedPlayerUuidsrecord componentarrivedPlayerUuids- the value for thearrivedPlayerUuidsrecord componentactivePlayerUuids- the value for theactivePlayerUuidsrecord componentspectatorPlayerUuids- the value for thespectatorPlayerUuidsrecord componentrequiredResultPlayerUuids- the value for therequiredResultPlayerUuidsrecord componentplacementState- the value for theplacementStaterecord componentreason- the value for thereasonrecord componentcreatedAtEpochMs- the value for thecreatedAtEpochMsrecord componenteventAtEpochMs- the value for theeventAtEpochMsrecord component
-
-
Method Details
-
matchResolutionTriggerId
Deprecated, for removal: This API element is subject to removal in a future version.Legacy field kept only for compatibility.Nexori no longer supports built-in match resolution triggers. The legacy value
"none"is kept only for older mods that treated it as manual/external resolution. UserulesEngineId()to identify the external minigame/rules engine. External minigames should resolve matches through the public API. This member will be removed in a future API cleanup.- Returns:
- the legacy trigger id, normally
"none"for compatibility.
-
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. -
matchId
-
queueId
-
arenaId
-
assignmentId
Returns the value of theassignmentIdrecord component.- Returns:
- the value of the
assignmentIdrecord component
-
externalMatchId
Returns the value of theexternalMatchIdrecord component.- Returns:
- the value of the
externalMatchIdrecord component
-
rulesEngineId
Returns the value of therulesEngineIdrecord component.- Returns:
- the value of the
rulesEngineIdrecord component
-
expectedPlayerUuids
Returns the value of theexpectedPlayerUuidsrecord component.- Returns:
- the value of the
expectedPlayerUuidsrecord component
-
arrivedPlayerUuids
Returns the value of thearrivedPlayerUuidsrecord component.- Returns:
- the value of the
arrivedPlayerUuidsrecord component
-
activePlayerUuids
Returns the value of theactivePlayerUuidsrecord component.- Returns:
- the value of the
activePlayerUuidsrecord component
-
spectatorPlayerUuids
Returns the value of thespectatorPlayerUuidsrecord component.- Returns:
- the value of the
spectatorPlayerUuidsrecord component
-
requiredResultPlayerUuids
Returns the value of therequiredResultPlayerUuidsrecord component.- Returns:
- the value of the
requiredResultPlayerUuidsrecord component
-
placementState
Returns the value of theplacementStaterecord component.- Returns:
- the value of the
placementStaterecord component
-
reason
-
createdAtEpochMs
public long createdAtEpochMs()Returns the value of thecreatedAtEpochMsrecord component.- Returns:
- the value of the
createdAtEpochMsrecord component
-
eventAtEpochMs
public long eventAtEpochMs()Returns the value of theeventAtEpochMsrecord component.- Returns:
- the value of the
eventAtEpochMsrecord component
-