Class MinecraftClientGame

java.lang.Object
net.minecraft.client.MinecraftClientGame
All Implemented Interfaces:
com.mojang.bridge.game.RunningGame

@Environment(CLIENT) public class MinecraftClientGame extends Object implements com.mojang.bridge.game.RunningGame
Mappings:
Namespace Name
official dxh
intermediary net/minecraft/class_3799
named net/minecraft/client/MinecraftClientGame
  • Field Details

    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official a Ldxh;a:Ldxo;
      intermediary field_16757 Lnet/minecraft/class_3799;field_16757:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/MinecraftClientGame;client:Lnet/minecraft/client/MinecraftClient;
    • launcher

      @Nullable private final @Nullable com.mojang.bridge.launcher.Launcher launcher
      Mappings:
      Namespace Name Mixin selector
      official b Ldxh;b:Lcom/mojang/bridge/launcher/Launcher;
      intermediary field_16755 Lnet/minecraft/class_3799;field_16755:Lcom/mojang/bridge/launcher/Launcher;
      named launcher Lnet/minecraft/client/MinecraftClientGame;launcher:Lcom/mojang/bridge/launcher/Launcher;
    • listener

      private com.mojang.bridge.launcher.SessionEventListener listener
      Mappings:
      Namespace Name Mixin selector
      official c Ldxh;c:Lcom/mojang/bridge/launcher/SessionEventListener;
      intermediary field_16756 Lnet/minecraft/class_3799;field_16756:Lcom/mojang/bridge/launcher/SessionEventListener;
      named listener Lnet/minecraft/client/MinecraftClientGame;listener:Lcom/mojang/bridge/launcher/SessionEventListener;
  • Constructor Details

    • MinecraftClientGame

      public MinecraftClientGame(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldxh;<init>(Ldxo;)V
      intermediary <init> Lnet/minecraft/class_3799;<init>(Lnet/minecraft/class_310;)V
      named <init> Lnet/minecraft/client/MinecraftClientGame;<init>(Lnet/minecraft/client/MinecraftClient;)V
  • Method Details

    • getVersion

      public com.mojang.bridge.game.GameVersion getVersion()
      Specified by:
      getVersion in interface com.mojang.bridge.game.RunningGame
    • getSelectedLanguage

      public com.mojang.bridge.game.Language getSelectedLanguage()
      Specified by:
      getSelectedLanguage in interface com.mojang.bridge.game.RunningGame
    • getCurrentSession

      @Nullable public @Nullable com.mojang.bridge.game.GameSession getCurrentSession()
      Specified by:
      getCurrentSession in interface com.mojang.bridge.game.RunningGame
    • getPerformanceMetrics

      public com.mojang.bridge.game.PerformanceMetrics getPerformanceMetrics()
      Specified by:
      getPerformanceMetrics in interface com.mojang.bridge.game.RunningGame
    • setSessionEventListener

      public void setSessionEventListener(com.mojang.bridge.launcher.SessionEventListener listener)
      Specified by:
      setSessionEventListener in interface com.mojang.bridge.game.RunningGame
      Mappings:
      Namespace Name Mixin selector
      official setSessionEventListener Ldxh;setSessionEventListener(Lcom/mojang/bridge/launcher/SessionEventListener;)V
      intermediary setSessionEventListener Lnet/minecraft/class_3799;setSessionEventListener(Lcom/mojang/bridge/launcher/SessionEventListener;)V
      named setSessionEventListener Lnet/minecraft/client/MinecraftClientGame;setSessionEventListener(Lcom/mojang/bridge/launcher/SessionEventListener;)V
    • onStartGameSession

      public void onStartGameSession()
      Mappings:
      Namespace Name Mixin selector
      official a Ldxh;a()V
      intermediary method_16687 Lnet/minecraft/class_3799;method_16687()V
      named onStartGameSession Lnet/minecraft/client/MinecraftClientGame;onStartGameSession()V
    • onLeaveGameSession

      public void onLeaveGameSession()
      Mappings:
      Namespace Name Mixin selector
      official b Ldxh;b()V
      intermediary method_16688 Lnet/minecraft/class_3799;method_16688()V
      named onLeaveGameSession Lnet/minecraft/client/MinecraftClientGame;onLeaveGameSession()V