Class Game

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

public class Game 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

  • 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_90746_)
      Specified by:
      setSessionEventListener in interface com.mojang.bridge.game.RunningGame
    • onStartGameSession

      public void onStartGameSession()
    • onLeaveGameSession

      public void onLeaveGameSession()