@Environment(value=CLIENT) public class ClientGameSession extends Object implements com.mojang.bridge.game.GameSession
Modifier and Type | Field and Description |
---|---|
private String |
difficulty |
private String |
gameMode |
private int |
playerCount |
private boolean |
remoteServer |
private UUID |
sessionId |
Constructor and Description |
---|
ClientGameSession(ClientWorld clientWorld,
ClientPlayerEntity clientPlayerEntity,
ClientPlayNetworkHandler clientPlayNetworkHandler) |
Modifier and Type | Method and Description |
---|---|
String |
getDifficulty() |
String |
getGameMode() |
int |
getPlayerCount() |
UUID |
getSessionId() |
boolean |
isRemoteServer() |
private final int playerCount
private final boolean remoteServer
private final String difficulty
private final String gameMode
private final UUID sessionId
public ClientGameSession(ClientWorld clientWorld, ClientPlayerEntity clientPlayerEntity, ClientPlayNetworkHandler clientPlayNetworkHandler)
public int getPlayerCount()
getPlayerCount
in interface com.mojang.bridge.game.GameSession
public boolean isRemoteServer()
isRemoteServer
in interface com.mojang.bridge.game.GameSession
public String getDifficulty()
getDifficulty
in interface com.mojang.bridge.game.GameSession
public String getGameMode()
getGameMode
in interface com.mojang.bridge.game.GameSession
public UUID getSessionId()
getSessionId
in interface com.mojang.bridge.game.GameSession