Class JoinPlayer.Builder
- java.lang.Object
-
- com.rivet.api.resources.matchmaker.common.types.JoinPlayer.Builder
-
- All Implemented Interfaces:
JoinPlayer._FinalStage,JoinPlayer.TokenStage
- Enclosing class:
- JoinPlayer
public static final class JoinPlayer.Builder extends java.lang.Object implements JoinPlayer.TokenStage, JoinPlayer._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JoinPlayerbuild()JoinPlayer.Builderfrom(JoinPlayer other)JoinPlayer._FinalStagetoken(java.lang.String token)Pass this token through the socket to the lobby server.
-
-
-
Method Detail
-
from
public JoinPlayer.Builder from(JoinPlayer other)
- Specified by:
fromin interfaceJoinPlayer.TokenStage
-
token
public JoinPlayer._FinalStage token(java.lang.String token)
Pass this token through the socket to the lobby server. The lobby server will validate this token with
PlayerConnected.player_token- Specified by:
tokenin interfaceJoinPlayer.TokenStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public JoinPlayer build()
- Specified by:
buildin interfaceJoinPlayer._FinalStage
-
-