Package net.minecraft.client
Class ClientGameSession
- java.lang.Object
-
- net.minecraft.client.ClientGameSession
-
- All Implemented Interfaces:
com.mojang.bridge.game.GameSession
public class ClientGameSession extends java.lang.Object implements com.mojang.bridge.game.GameSession
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
difficulty
private java.lang.String
gameMode
private java.util.UUID
id
private boolean
isRemoteServer
private int
players
-
Constructor Summary
Constructors Constructor Description ClientGameSession(ClientWorld p_i51152_1_, ClientPlayerEntity p_i51152_2_, ClientPlayNetHandler p_i51152_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDifficulty()
java.lang.String
getGameMode()
int
getPlayerCount()
java.util.UUID
getSessionId()
boolean
isRemoteServer()
-
-
-
Constructor Detail
-
ClientGameSession
public ClientGameSession(ClientWorld p_i51152_1_, ClientPlayerEntity p_i51152_2_, ClientPlayNetHandler p_i51152_3_)
-
-
Method Detail
-
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
public java.lang.String getDifficulty()
- Specified by:
getDifficulty
in interfacecom.mojang.bridge.game.GameSession
-
getGameMode
public java.lang.String getGameMode()
- Specified by:
getGameMode
in interfacecom.mojang.bridge.game.GameSession
-
getSessionId
public java.util.UUID getSessionId()
- Specified by:
getSessionId
in interfacecom.mojang.bridge.game.GameSession
-
-