Record Class NexoriPlayerAfkChangedEvent
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriPlayerAfkChangedEvent
- Record Components:
matchId- Nexori local match id.queueId- queue id that produced the match, when known.arenaId- arena id that owns the match, when known.rulesEngineId- rules engine id that owns the match.playerUuid- player whose AFK state changed.playerName- player name known by Nexori at the transition point.afk-truewhen the player became AFK;falsewhen they became active.changedAtEpochMs- transition timestamp.idleMs- local idle duration at the transition point.source- public source of the transition.
public record NexoriPlayerAfkChangedEvent(String matchId, String queueId, String arenaId, String rulesEngineId, UUID playerUuid, String playerName, boolean afk, long changedAtEpochMs, long idleMs, NexoriAfkActivitySource source)
extends Record
Immutable public event for a Nexori local AFK state transition.
idleMs means the player idle duration at the transition point:
for afk=true, how long the player had been inactive before becoming AFK;
for afk=false, how long the player had been inactive before becoming active again.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriPlayerAfkChangedEvent(String matchId, String queueId, String arenaId, String rulesEngineId, UUID playerUuid, String playerName, boolean afk, long changedAtEpochMs, long idleMs, NexoriAfkActivitySource source) Creates an instance of aNexoriPlayerAfkChangedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanafk()Returns the value of theafkrecord component.arenaId()Returns the value of thearenaIdrecord component.longReturns the value of thechangedAtEpochMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longidleMs()Returns the value of theidleMsrecord component.matchId()Returns the value of thematchIdrecord component.Returns the value of theplayerNamerecord component.Returns the value of theplayerUuidrecord component.queueId()Returns the value of thequeueIdrecord component.Returns the value of therulesEngineIdrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NexoriPlayerAfkChangedEvent
public NexoriPlayerAfkChangedEvent(String matchId, String queueId, String arenaId, String rulesEngineId, UUID playerUuid, String playerName, boolean afk, long changedAtEpochMs, long idleMs, NexoriAfkActivitySource source) Creates an instance of aNexoriPlayerAfkChangedEventrecord class.- Parameters:
matchId- the value for thematchIdrecord componentqueueId- the value for thequeueIdrecord componentarenaId- the value for thearenaIdrecord componentrulesEngineId- the value for therulesEngineIdrecord componentplayerUuid- the value for theplayerUuidrecord componentplayerName- the value for theplayerNamerecord componentafk- the value for theafkrecord componentchangedAtEpochMs- the value for thechangedAtEpochMsrecord componentidleMs- the value for theidleMsrecord componentsource- the value for thesourcerecord 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. -
matchId
-
queueId
-
arenaId
-
rulesEngineId
Returns the value of therulesEngineIdrecord component.- Returns:
- the value of the
rulesEngineIdrecord component
-
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
-
afk
-
changedAtEpochMs
public long changedAtEpochMs()Returns the value of thechangedAtEpochMsrecord component.- Returns:
- the value of the
changedAtEpochMsrecord component
-
idleMs
-
source
-