Package net.minecraft.client
Class ClientGameSession
java.lang.Object
net.minecraft.client.ClientGameSession
- All Implemented Interfaces:
com.mojang.bridge.game.GameSession
@Environment(CLIENT) public class ClientGameSession extends Object implements com.mojang.bridge.game.GameSession
-
Field Summary
Fields Modifier and Type Field Description private String
difficulty
private String
gameMode
private int
playerCount
private boolean
remoteServer
private UUID
sessionId
-
Constructor Summary
Constructors Constructor Description ClientGameSession(ClientWorld clientWorld, ClientPlayerEntity clientPlayerEntity, ClientPlayNetworkHandler clientPlayNetworkHandler)
-
Method Summary
Modifier and Type Method Description String
getDifficulty()
String
getGameMode()
int
getPlayerCount()
UUID
getSessionId()
boolean
isRemoteServer()
-
Field Details
-
playerCount
private final int playerCount -
remoteServer
private final boolean remoteServer -
difficulty
-
gameMode
-
sessionId
-
-
Constructor Details
-
ClientGameSession
public ClientGameSession(ClientWorld clientWorld, ClientPlayerEntity clientPlayerEntity, ClientPlayNetworkHandler clientPlayNetworkHandler)
-
-
Method Details
-
getPlayerCount
public int getPlayerCount()- Specified by:
getPlayerCount
in interfacecom.mojang.bridge.game.GameSession
-
isRemoteServer
public boolean isRemoteServer()- Specified by:
isRemoteServer
in interfacecom.mojang.bridge.game.GameSession
-
getDifficulty
- Specified by:
getDifficulty
in interfacecom.mojang.bridge.game.GameSession
-
getGameMode
- Specified by:
getGameMode
in interfacecom.mojang.bridge.game.GameSession
-
getSessionId
- Specified by:
getSessionId
in interfacecom.mojang.bridge.game.GameSession
-