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 egg
intermediary net/minecraft/class_3801
named net/minecraft/client/ClientGameSession
  • Field Details

    • playerCount

      private final int playerCount
      Mappings:
      Namespace Name Mixin selector
      official a Legg;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 Legg;b:Z
      intermediary field_16766 Lnet/minecraft/class_3801;field_16766:Z
      named remoteServer Lnet/minecraft/client/ClientGameSession;remoteServer:Z
    • difficulty

      private final String difficulty
      Mappings:
      Namespace Name Mixin selector
      official c Legg;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

      private final String gameMode
      Mappings:
      Namespace Name Mixin selector
      official d Legg;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

      private final UUID sessionId
      Mappings:
      Namespace Name Mixin selector
      official e Legg;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> Legg;<init>(Leuv;Leyw;Leuw;)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 interface com.mojang.bridge.game.GameSession
    • isRemoteServer

      public boolean isRemoteServer()
      Specified by:
      isRemoteServer in interface com.mojang.bridge.game.GameSession
    • getDifficulty

      public String getDifficulty()
      Specified by:
      getDifficulty in interface com.mojang.bridge.game.GameSession
    • getGameMode

      public String getGameMode()
      Specified by:
      getGameMode in interface com.mojang.bridge.game.GameSession
    • getSessionId

      public UUID getSessionId()
      Specified by:
      getSessionId in interface com.mojang.bridge.game.GameSession