Record Class NexoriActiveMatchInfo
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriActiveMatchInfo
- 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.eliminatedPlayerUuids- players no longer active because Nexori recorded an outcome.spectatorPlayerUuids- players marked as logical spectators.afkPlayerUuids- players currently marked AFK by Nexori's local AFK runtime state.requiredResultPlayerUuids- official player set that must have outcomes before final result submission.playerOutcomes- outcome state currently stored by rules mod calls.expectedPlayerCount- expected initial player count.completedAtEpochMs- completion timestamp, or0while incomplete.resultSubmittedAtEpochMs- final result submission timestamp, or0before submission.
public record NexoriActiveMatchInfo(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> eliminatedPlayerUuids, List<UUID> spectatorPlayerUuids, List<UUID> afkPlayerUuids, List<UUID> requiredResultPlayerUuids, List<NexoriPlayerOutcomeState> playerOutcomes, int expectedPlayerCount, long completedAtEpochMs, long resultSubmittedAtEpochMs)
extends Record
Public runtime snapshot for one Nexori-managed match.
Use this as a read-only view of the match state Nexori exposes to a rules mod. Lists are normalized by Nexori and should not be mutated by callers.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriActiveMatchInfo(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> eliminatedPlayerUuids, List<UUID> spectatorPlayerUuids, List<UUID> requiredResultPlayerUuids, List<NexoriPlayerOutcomeState> playerOutcomes, int expectedPlayerCount, long completedAtEpochMs, long resultSubmittedAtEpochMs) NexoriActiveMatchInfo(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> eliminatedPlayerUuids, List<UUID> spectatorPlayerUuids, List<UUID> afkPlayerUuids, List<UUID> requiredResultPlayerUuids, List<NexoriPlayerOutcomeState> playerOutcomes, int expectedPlayerCount, long completedAtEpochMs, long resultSubmittedAtEpochMs) Creates an instance of aNexoriActiveMatchInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivePlayerUuidsrecord component.Returns the value of theafkPlayerUuidsrecord component.arenaId()Returns the value of thearenaIdrecord component.Returns the value of thearrivedPlayerUuidsrecord component.Returns the value of theassignmentIdrecord component.longReturns the value of thecompletedAtEpochMsrecord component.Returns the value of theeliminatedPlayerUuidsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpectedPlayerCountrecord 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 theplayerOutcomesrecord component.queueId()Returns the value of thequeueIdrecord component.Returns the value of therequiredResultPlayerUuidsrecord component.longReturns the value of theresultSubmittedAtEpochMsrecord 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
-
NexoriActiveMatchInfo
public NexoriActiveMatchInfo(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> eliminatedPlayerUuids, List<UUID> spectatorPlayerUuids, List<UUID> requiredResultPlayerUuids, List<NexoriPlayerOutcomeState> playerOutcomes, int expectedPlayerCount, long completedAtEpochMs, long resultSubmittedAtEpochMs) -
NexoriActiveMatchInfo
public NexoriActiveMatchInfo(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> eliminatedPlayerUuids, List<UUID> spectatorPlayerUuids, List<UUID> afkPlayerUuids, List<UUID> requiredResultPlayerUuids, List<NexoriPlayerOutcomeState> playerOutcomes, int expectedPlayerCount, long completedAtEpochMs, long resultSubmittedAtEpochMs) Creates an instance of aNexoriActiveMatchInforecord 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 componenteliminatedPlayerUuids- the value for theeliminatedPlayerUuidsrecord componentspectatorPlayerUuids- the value for thespectatorPlayerUuidsrecord componentafkPlayerUuids- the value for theafkPlayerUuidsrecord componentrequiredResultPlayerUuids- the value for therequiredResultPlayerUuidsrecord componentplayerOutcomes- the value for theplayerOutcomesrecord componentexpectedPlayerCount- the value for theexpectedPlayerCountrecord componentcompletedAtEpochMs- the value for thecompletedAtEpochMsrecord componentresultSubmittedAtEpochMs- the value for theresultSubmittedAtEpochMsrecord 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
-
eliminatedPlayerUuids
Returns the value of theeliminatedPlayerUuidsrecord component.- Returns:
- the value of the
eliminatedPlayerUuidsrecord component
-
spectatorPlayerUuids
Returns the value of thespectatorPlayerUuidsrecord component.- Returns:
- the value of the
spectatorPlayerUuidsrecord component
-
afkPlayerUuids
Returns the value of theafkPlayerUuidsrecord component.- Returns:
- the value of the
afkPlayerUuidsrecord component
-
requiredResultPlayerUuids
Returns the value of therequiredResultPlayerUuidsrecord component.- Returns:
- the value of the
requiredResultPlayerUuidsrecord component
-
playerOutcomes
Returns the value of theplayerOutcomesrecord component.- Returns:
- the value of the
playerOutcomesrecord component
-
expectedPlayerCount
public int expectedPlayerCount()Returns the value of theexpectedPlayerCountrecord component.- Returns:
- the value of the
expectedPlayerCountrecord component
-
completedAtEpochMs
public long completedAtEpochMs()Returns the value of thecompletedAtEpochMsrecord component.- Returns:
- the value of the
completedAtEpochMsrecord component
-
resultSubmittedAtEpochMs
public long resultSubmittedAtEpochMs()Returns the value of theresultSubmittedAtEpochMsrecord component.- Returns:
- the value of the
resultSubmittedAtEpochMsrecord component
-