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
- Mappings:
Namespace Name official dqtintermediary net/minecraft/class_3801named net/minecraft/client/ClientGameSession
-
Field Summary
Fields Modifier and Type Field Description private Stringdifficultyprivate StringgameModeprivate intplayerCountprivate booleanremoteServerprivate UUIDsessionId -
Constructor Summary
Constructors Constructor Description ClientGameSession(ClientWorld world, ClientPlayerEntity player, ClientPlayNetworkHandler networkHandler) -
Method Summary
Modifier and Type Method Description StringgetDifficulty()StringgetGameMode()intgetPlayerCount()UUIDgetSessionId()booleanisRemoteServer()
-
Field Details
-
playerCount
private final int playerCount- Mappings:
Namespace Name Mixin selector official aLdqt;a:Iintermediary field_16765Lnet/minecraft/class_3801;field_16765:Inamed playerCountLnet/minecraft/client/ClientGameSession;playerCount:I
-
remoteServer
private final boolean remoteServer- Mappings:
Namespace Name Mixin selector official bLdqt;b:Zintermediary field_16766Lnet/minecraft/class_3801;field_16766:Znamed remoteServerLnet/minecraft/client/ClientGameSession;remoteServer:Z
-
difficulty
- Mappings:
Namespace Name Mixin selector official cLdqt;c:Ljava/lang/String;intermediary field_16763Lnet/minecraft/class_3801;field_16763:Ljava/lang/String;named difficultyLnet/minecraft/client/ClientGameSession;difficulty:Ljava/lang/String;
-
gameMode
- Mappings:
Namespace Name Mixin selector official dLdqt;d:Ljava/lang/String;intermediary field_16764Lnet/minecraft/class_3801;field_16764:Ljava/lang/String;named gameModeLnet/minecraft/client/ClientGameSession;gameMode:Ljava/lang/String;
-
sessionId
- Mappings:
Namespace Name Mixin selector official eLdqt;e:Ljava/util/UUID;intermediary field_16767Lnet/minecraft/class_3801;field_16767:Ljava/util/UUID;named sessionIdLnet/minecraft/client/ClientGameSession;sessionId:Ljava/util/UUID;
-
-
Constructor Details
-
ClientGameSession
public ClientGameSession(ClientWorld world, ClientPlayerEntity player, ClientPlayNetworkHandler networkHandler)- Mappings:
Namespace Name Mixin selector official <init>Ldqt;<init>(Ledy;Legw;Ledz;)Vintermediary <init>Lnet/minecraft/class_3801;<init>(Lnet/minecraft/class_638;Lnet/minecraft/class_746;Lnet/minecraft/class_634;)Vnamed <init>Lnet/minecraft/client/ClientGameSession;<init>(Lnet/minecraft/client/world/ClientWorld;Lnet/minecraft/client/network/ClientPlayerEntity;Lnet/minecraft/client/network/ClientPlayNetworkHandler;)V
-
-
Method Details
-
getPlayerCount
public int getPlayerCount()- Specified by:
getPlayerCountin interfacecom.mojang.bridge.game.GameSession- Mappings:
Namespace Name Mixin selector official getPlayerCountLdqt;getPlayerCount()Iintermediary getPlayerCountLnet/minecraft/class_3801;getPlayerCount()Inamed getPlayerCountLnet/minecraft/client/ClientGameSession;getPlayerCount()I
-
isRemoteServer
public boolean isRemoteServer()- Specified by:
isRemoteServerin interfacecom.mojang.bridge.game.GameSession- Mappings:
Namespace Name Mixin selector official isRemoteServerLdqt;isRemoteServer()Zintermediary isRemoteServerLnet/minecraft/class_3801;isRemoteServer()Znamed isRemoteServerLnet/minecraft/client/ClientGameSession;isRemoteServer()Z
-
getDifficulty
- Specified by:
getDifficultyin interfacecom.mojang.bridge.game.GameSession- Mappings:
Namespace Name Mixin selector official getDifficultyLdqt;getDifficulty()Ljava/lang/String;intermediary getDifficultyLnet/minecraft/class_3801;getDifficulty()Ljava/lang/String;named getDifficultyLnet/minecraft/client/ClientGameSession;getDifficulty()Ljava/lang/String;
-
getGameMode
- Specified by:
getGameModein interfacecom.mojang.bridge.game.GameSession- Mappings:
Namespace Name Mixin selector official getGameModeLdqt;getGameMode()Ljava/lang/String;intermediary getGameModeLnet/minecraft/class_3801;getGameMode()Ljava/lang/String;named getGameModeLnet/minecraft/client/ClientGameSession;getGameMode()Ljava/lang/String;
-
getSessionId
- Specified by:
getSessionIdin interfacecom.mojang.bridge.game.GameSession- Mappings:
Namespace Name Mixin selector official getSessionIdLdqt;getSessionId()Ljava/util/UUID;intermediary getSessionIdLnet/minecraft/class_3801;getSessionId()Ljava/util/UUID;named getSessionIdLnet/minecraft/client/ClientGameSession;getSessionId()Ljava/util/UUID;
-