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 dqt
intermediary net/minecraft/class_3801
named net/minecraft/client/ClientGameSession
-
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 world, ClientPlayerEntity player, ClientPlayNetworkHandler networkHandler)
-
Method Summary
Modifier and Type Method Description String
getDifficulty()
String
getGameMode()
int
getPlayerCount()
UUID
getSessionId()
boolean
isRemoteServer()
-
Field Details
-
playerCount
private final int playerCount- Mappings:
Namespace Name Mixin selector official a
Ldqt;a:I
intermediary field_16765
Lnet/minecraft/class_3801;field_16765:I
named playerCount
Lnet/minecraft/client/ClientGameSession;playerCount:I
-
remoteServer
private final boolean remoteServer- Mappings:
Namespace Name Mixin selector official b
Ldqt;b:Z
intermediary field_16766
Lnet/minecraft/class_3801;field_16766:Z
named remoteServer
Lnet/minecraft/client/ClientGameSession;remoteServer:Z
-
difficulty
- Mappings:
Namespace Name Mixin selector official c
Ldqt;c:Ljava/lang/String;
intermediary field_16763
Lnet/minecraft/class_3801;field_16763:Ljava/lang/String;
named difficulty
Lnet/minecraft/client/ClientGameSession;difficulty:Ljava/lang/String;
-
gameMode
- Mappings:
Namespace Name Mixin selector official d
Ldqt;d:Ljava/lang/String;
intermediary field_16764
Lnet/minecraft/class_3801;field_16764:Ljava/lang/String;
named gameMode
Lnet/minecraft/client/ClientGameSession;gameMode:Ljava/lang/String;
-
sessionId
- Mappings:
Namespace Name Mixin selector official e
Ldqt;e:Ljava/util/UUID;
intermediary field_16767
Lnet/minecraft/class_3801;field_16767:Ljava/util/UUID;
named sessionId
Lnet/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;)V
intermediary <init>
Lnet/minecraft/class_3801;<init>(Lnet/minecraft/class_638;Lnet/minecraft/class_746;Lnet/minecraft/class_634;)V
named <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:
getPlayerCount
in interfacecom.mojang.bridge.game.GameSession
- Mappings:
Namespace Name Mixin selector official getPlayerCount
Ldqt;getPlayerCount()I
intermediary getPlayerCount
Lnet/minecraft/class_3801;getPlayerCount()I
named getPlayerCount
Lnet/minecraft/client/ClientGameSession;getPlayerCount()I
-
isRemoteServer
public boolean isRemoteServer()- Specified by:
isRemoteServer
in interfacecom.mojang.bridge.game.GameSession
- Mappings:
Namespace Name Mixin selector official isRemoteServer
Ldqt;isRemoteServer()Z
intermediary isRemoteServer
Lnet/minecraft/class_3801;isRemoteServer()Z
named isRemoteServer
Lnet/minecraft/client/ClientGameSession;isRemoteServer()Z
-
getDifficulty
- Specified by:
getDifficulty
in interfacecom.mojang.bridge.game.GameSession
- Mappings:
Namespace Name Mixin selector official getDifficulty
Ldqt;getDifficulty()Ljava/lang/String;
intermediary getDifficulty
Lnet/minecraft/class_3801;getDifficulty()Ljava/lang/String;
named getDifficulty
Lnet/minecraft/client/ClientGameSession;getDifficulty()Ljava/lang/String;
-
getGameMode
- Specified by:
getGameMode
in interfacecom.mojang.bridge.game.GameSession
- Mappings:
Namespace Name Mixin selector official getGameMode
Ldqt;getGameMode()Ljava/lang/String;
intermediary getGameMode
Lnet/minecraft/class_3801;getGameMode()Ljava/lang/String;
named getGameMode
Lnet/minecraft/client/ClientGameSession;getGameMode()Ljava/lang/String;
-
getSessionId
- Specified by:
getSessionId
in interfacecom.mojang.bridge.game.GameSession
- Mappings:
Namespace Name Mixin selector official getSessionId
Ldqt;getSessionId()Ljava/util/UUID;
intermediary getSessionId
Lnet/minecraft/class_3801;getSessionId()Ljava/util/UUID;
named getSessionId
Lnet/minecraft/client/ClientGameSession;getSessionId()Ljava/util/UUID;
-