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 efhintermediary net/minecraft/class_3801named net/minecraft/client/ClientGameSession
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientGameSession(ClientWorld world, ClientPlayerEntity player, ClientPlayNetworkHandler networkHandler) -
Method Summary
Modifier and TypeMethodDescriptionintboolean
-
Field Details
-
playerCount
private final int playerCount- Mappings:
Namespace Name Mixin selector official aLefh;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 bLefh;b:Zintermediary field_16766Lnet/minecraft/class_3801;field_16766:Znamed remoteServerLnet/minecraft/client/ClientGameSession;remoteServer:Z
-
difficulty
- Mappings:
Namespace Name Mixin selector official cLefh;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 dLefh;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 eLefh;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>Lefh;<init>(Letm;Lewy;Letn;)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
-
isRemoteServer
public boolean isRemoteServer()- Specified by:
isRemoteServerin interfacecom.mojang.bridge.game.GameSession
-
getDifficulty
- Specified by:
getDifficultyin interfacecom.mojang.bridge.game.GameSession
-
getGameMode
- Specified by:
getGameModein interfacecom.mojang.bridge.game.GameSession
-
getSessionId
- Specified by:
getSessionIdin interfacecom.mojang.bridge.game.GameSession
-