Record Class NexoriMatchResultRequirements
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriMatchResultRequirements
- 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.requiredPlayerUuids- official players that require a final outcome.expectedPlayerUuids- players Nexori expected during initial placement.arrivedPlayerUuids- players that reached the arena runtime.activePlayerUuids- players currently considered active in the match runtime.eliminatedPlayerUuids- players with a stored non-active outcome.
public record NexoriMatchResultRequirements(String matchId, String queueId, String arenaId, List<UUID> requiredPlayerUuids, List<UUID> expectedPlayerUuids, List<UUID> arrivedPlayerUuids, List<UUID> activePlayerUuids, List<UUID> eliminatedPlayerUuids)
extends Record
Official result requirement set for one active match.
requiredPlayerUuids() is the source of truth for final outcomes. A rules mod may
keep its own gameplay participant list, but before submitting the final result it should build
outcomes from this set or validate its local list against it.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriMatchResultRequirements(String matchId, String queueId, String arenaId, List<UUID> requiredPlayerUuids, List<UUID> expectedPlayerUuids, List<UUID> arrivedPlayerUuids, List<UUID> activePlayerUuids, List<UUID> eliminatedPlayerUuids) Creates an instance of aNexoriMatchResultRequirementsrecord 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 theeliminatedPlayerUuidsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedPlayerUuidsrecord component.final inthashCode()Returns a hash code value for this object.matchId()Returns the value of thematchIdrecord component.queueId()Returns the value of thequeueIdrecord component.Returns the value of therequiredPlayerUuidsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriMatchResultRequirements
public NexoriMatchResultRequirements(String matchId, String queueId, String arenaId, List<UUID> requiredPlayerUuids, List<UUID> expectedPlayerUuids, List<UUID> arrivedPlayerUuids, List<UUID> activePlayerUuids, List<UUID> eliminatedPlayerUuids) Creates an instance of aNexoriMatchResultRequirementsrecord class.- Parameters:
matchId- the value for thematchIdrecord componentqueueId- the value for thequeueIdrecord componentarenaId- the value for thearenaIdrecord componentrequiredPlayerUuids- the value for therequiredPlayerUuidsrecord componentexpectedPlayerUuids- the value for theexpectedPlayerUuidsrecord componentarrivedPlayerUuids- the value for thearrivedPlayerUuidsrecord componentactivePlayerUuids- the value for theactivePlayerUuidsrecord componenteliminatedPlayerUuids- the value for theeliminatedPlayerUuidsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
matchId
-
queueId
-
arenaId
-
requiredPlayerUuids
Returns the value of therequiredPlayerUuidsrecord component.- Returns:
- the value of the
requiredPlayerUuidsrecord 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
-