Record Class NexoriPlayerPlacementLifecycleEvent
java.lang.Object
java.lang.Record
io.github.hyjn.nexori.plugin.api.minigame.NexoriPlayerPlacementLifecycleEvent
- Record Components:
player- player-scoped lifecycle snapshot.placementOutcome- placement outcome Nexori recorded for the player.placementState- match placement/start gate snapshot after this player's placement event.worldName- world name used for placement, when known.instanceTemplateId- instance template id used for placement, when known.eventAtEpochMs- event timestamp.
public record NexoriPlayerPlacementLifecycleEvent(NexoriPlayerMatchLifecycleEvent player, NexoriPlayerPlacementOutcome placementOutcome, NexoriMatchPlacementState placementState, String worldName, String instanceTemplateId, long eventAtEpochMs)
extends Record
Immutable public snapshot for an individual player placement lifecycle event.
-
Constructor Summary
ConstructorsConstructorDescriptionNexoriPlayerPlacementLifecycleEvent(NexoriPlayerMatchLifecycleEvent player, NexoriPlayerPlacementOutcome placementOutcome, NexoriMatchPlacementState placementState, String worldName, String instanceTemplateId, long eventAtEpochMs) Creates an instance of aNexoriPlayerPlacementLifecycleEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theeventAtEpochMsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceTemplateIdrecord component.Returns the value of theplacementOutcomerecord component.Returns the value of theplacementStaterecord component.player()Returns the value of theplayerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworldNamerecord component.
-
Constructor Details
-
NexoriPlayerPlacementLifecycleEvent
public NexoriPlayerPlacementLifecycleEvent(NexoriPlayerMatchLifecycleEvent player, NexoriPlayerPlacementOutcome placementOutcome, NexoriMatchPlacementState placementState, String worldName, String instanceTemplateId, long eventAtEpochMs) Creates an instance of aNexoriPlayerPlacementLifecycleEventrecord class.- Parameters:
player- the value for theplayerrecord componentplacementOutcome- the value for theplacementOutcomerecord componentplacementState- the value for theplacementStaterecord componentworldName- the value for theworldNamerecord componentinstanceTemplateId- the value for theinstanceTemplateIdrecord componenteventAtEpochMs- the value for theeventAtEpochMsrecord 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. -
player
-
placementOutcome
Returns the value of theplacementOutcomerecord component.- Returns:
- the value of the
placementOutcomerecord component
-
placementState
Returns the value of theplacementStaterecord component.- Returns:
- the value of the
placementStaterecord component
-
worldName
-
instanceTemplateId
Returns the value of theinstanceTemplateIdrecord component.- Returns:
- the value of the
instanceTemplateIdrecord component
-
eventAtEpochMs
public long eventAtEpochMs()Returns the value of theeventAtEpochMsrecord component.- Returns:
- the value of the
eventAtEpochMsrecord component
-