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 efg
intermediary net/minecraft/class_3801
named net/minecraft/client/ClientGameSession
-
Field Summary
-
Constructor Summary
ConstructorDescriptionClientGameSession
(ClientWorld world, ClientPlayerEntity player, ClientPlayNetworkHandler networkHandler) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
-
Field Details
-
playerCount
private final int playerCount- Mappings:
Namespace Name Mixin selector official a
Lefg;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
Lefg;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
Lefg;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
Lefg;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
Lefg;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>
Lefg;<init>(Letl;Lewx;Letm;)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
-
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
-