Class MinecraftGame

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

public class MinecraftGame extends Object implements com.mojang.bridge.game.RunningGame
  • Field Details

    • minecraft

      private final Minecraft minecraft
    • launcher

      @Nullable private final com.mojang.bridge.launcher.Launcher launcher
    • listener

      private com.mojang.bridge.launcher.SessionEventListener listener
  • Constructor Details

    • MinecraftGame

      public MinecraftGame(Minecraft p_i51163_1_)
  • 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 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 p_setSessionEventListener_1_)
      Specified by:
      setSessionEventListener in interface com.mojang.bridge.game.RunningGame
    • onStartGameSession

      public void onStartGameSession()
    • onLeaveGameSession

      public void onLeaveGameSession()