Record Class NexoriMatchPlacementState
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriMatchPlacementState
- Record Components:
expectedPlayers- expected initial players.arrivedPlayers- expected players that arrived at the arena runtime.placedPlayers- expected players with confirmed or fallback placement.placementComplete- whether every expected initial player has placement recorded.minimumInitialPlayers- minimum placed player count required to open the start gate.initialPlacementWindowOpen- whether the initial placement window is still open.initialPlacementWindowStartedAtEpochMs- placement window start timestamp, or0.initialPlacementWindowExpiresAtEpochMs- placement window expiry timestamp, or0.initialPlacementWindowClosedAtEpochMs- placement window close timestamp, or0.initialPlacementWindowCloseReason- public reason the placement window closed.startGateOpen- whether rules mods may start normal gameplay.startGateOpenedAtEpochMs- start gate open timestamp, or0.startGateOpenReason- public reason the start gate opened.
public record NexoriMatchPlacementState(int expectedPlayers, int arrivedPlayers, int placedPlayers, boolean placementComplete, int minimumInitialPlayers, boolean initialPlacementWindowOpen, long initialPlacementWindowStartedAtEpochMs, long initialPlacementWindowExpiresAtEpochMs, long initialPlacementWindowClosedAtEpochMs, String initialPlacementWindowCloseReason, boolean startGateOpen, long startGateOpenedAtEpochMs, String startGateOpenReason)
extends Record
Public snapshot of Nexori's initial placement and start-gate state for one active match.
placementComplete means every expected initial player was placed.
startGateOpen means gameplay may start; that can happen with a partial initial roster
after the configured placement window expires and minimumInitialPlayers has been met.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriMatchPlacementState(int expectedPlayers, int arrivedPlayers, int placedPlayers, boolean placementComplete) NexoriMatchPlacementState(int expectedPlayers, int arrivedPlayers, int placedPlayers, boolean placementComplete, int minimumInitialPlayers, boolean initialPlacementWindowOpen, long initialPlacementWindowStartedAtEpochMs, long initialPlacementWindowExpiresAtEpochMs, long initialPlacementWindowClosedAtEpochMs, String initialPlacementWindowCloseReason, boolean startGateOpen, long startGateOpenedAtEpochMs, String startGateOpenReason) Creates an instance of aNexoriMatchPlacementStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thearrivedPlayersrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexpectedPlayersrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theinitialPlacementWindowClosedAtEpochMsrecord component.Returns the value of theinitialPlacementWindowCloseReasonrecord component.longReturns the value of theinitialPlacementWindowExpiresAtEpochMsrecord component.booleanReturns the value of theinitialPlacementWindowOpenrecord component.longReturns the value of theinitialPlacementWindowStartedAtEpochMsrecord component.intReturns the value of theminimumInitialPlayersrecord component.intReturns the value of theplacedPlayersrecord component.booleanReturns the value of theplacementCompleterecord component.booleanReturns the value of thestartGateOpenrecord component.longReturns the value of thestartGateOpenedAtEpochMsrecord component.Returns the value of thestartGateOpenReasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriMatchPlacementState
public NexoriMatchPlacementState(int expectedPlayers, int arrivedPlayers, int placedPlayers, boolean placementComplete) -
NexoriMatchPlacementState
public NexoriMatchPlacementState(int expectedPlayers, int arrivedPlayers, int placedPlayers, boolean placementComplete, int minimumInitialPlayers, boolean initialPlacementWindowOpen, long initialPlacementWindowStartedAtEpochMs, long initialPlacementWindowExpiresAtEpochMs, long initialPlacementWindowClosedAtEpochMs, String initialPlacementWindowCloseReason, boolean startGateOpen, long startGateOpenedAtEpochMs, String startGateOpenReason) Creates an instance of aNexoriMatchPlacementStaterecord class.- Parameters:
expectedPlayers- the value for theexpectedPlayersrecord componentarrivedPlayers- the value for thearrivedPlayersrecord componentplacedPlayers- the value for theplacedPlayersrecord componentplacementComplete- the value for theplacementCompleterecord componentminimumInitialPlayers- the value for theminimumInitialPlayersrecord componentinitialPlacementWindowOpen- the value for theinitialPlacementWindowOpenrecord componentinitialPlacementWindowStartedAtEpochMs- the value for theinitialPlacementWindowStartedAtEpochMsrecord componentinitialPlacementWindowExpiresAtEpochMs- the value for theinitialPlacementWindowExpiresAtEpochMsrecord componentinitialPlacementWindowClosedAtEpochMs- the value for theinitialPlacementWindowClosedAtEpochMsrecord componentinitialPlacementWindowCloseReason- the value for theinitialPlacementWindowCloseReasonrecord componentstartGateOpen- the value for thestartGateOpenrecord componentstartGateOpenedAtEpochMs- the value for thestartGateOpenedAtEpochMsrecord componentstartGateOpenReason- the value for thestartGateOpenReasonrecord 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. -
expectedPlayers
public int expectedPlayers()Returns the value of theexpectedPlayersrecord component.- Returns:
- the value of the
expectedPlayersrecord component
-
arrivedPlayers
public int arrivedPlayers()Returns the value of thearrivedPlayersrecord component.- Returns:
- the value of the
arrivedPlayersrecord component
-
placedPlayers
public int placedPlayers()Returns the value of theplacedPlayersrecord component.- Returns:
- the value of the
placedPlayersrecord component
-
placementComplete
public boolean placementComplete()Returns the value of theplacementCompleterecord component.- Returns:
- the value of the
placementCompleterecord component
-
minimumInitialPlayers
public int minimumInitialPlayers()Returns the value of theminimumInitialPlayersrecord component.- Returns:
- the value of the
minimumInitialPlayersrecord component
-
initialPlacementWindowOpen
public boolean initialPlacementWindowOpen()Returns the value of theinitialPlacementWindowOpenrecord component.- Returns:
- the value of the
initialPlacementWindowOpenrecord component
-
initialPlacementWindowStartedAtEpochMs
public long initialPlacementWindowStartedAtEpochMs()Returns the value of theinitialPlacementWindowStartedAtEpochMsrecord component.- Returns:
- the value of the
initialPlacementWindowStartedAtEpochMsrecord component
-
initialPlacementWindowExpiresAtEpochMs
public long initialPlacementWindowExpiresAtEpochMs()Returns the value of theinitialPlacementWindowExpiresAtEpochMsrecord component.- Returns:
- the value of the
initialPlacementWindowExpiresAtEpochMsrecord component
-
initialPlacementWindowClosedAtEpochMs
public long initialPlacementWindowClosedAtEpochMs()Returns the value of theinitialPlacementWindowClosedAtEpochMsrecord component.- Returns:
- the value of the
initialPlacementWindowClosedAtEpochMsrecord component
-
initialPlacementWindowCloseReason
Returns the value of theinitialPlacementWindowCloseReasonrecord component.- Returns:
- the value of the
initialPlacementWindowCloseReasonrecord component
-
startGateOpen
public boolean startGateOpen()Returns the value of thestartGateOpenrecord component.- Returns:
- the value of the
startGateOpenrecord component
-
startGateOpenedAtEpochMs
public long startGateOpenedAtEpochMs()Returns the value of thestartGateOpenedAtEpochMsrecord component.- Returns:
- the value of the
startGateOpenedAtEpochMsrecord component
-
startGateOpenReason
Returns the value of thestartGateOpenReasonrecord component.- Returns:
- the value of the
startGateOpenReasonrecord component
-