Package net.minecraft.client
Class Game
java.lang.Object
net.minecraft.client.Game
- All Implemented Interfaces:
com.mojang.bridge.game.RunningGame
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.bridge.game.GameSession
com.mojang.bridge.game.PerformanceMetrics
com.mojang.bridge.game.Language
com.mojang.bridge.game.GameVersion
void
void
void
setSessionEventListener
(com.mojang.bridge.launcher.SessionEventListener p_90746_)
-
Field Details
-
minecraft
-
launcher
@Nullable private final com.mojang.bridge.launcher.Launcher launcher -
listener
private com.mojang.bridge.launcher.SessionEventListener listener
-
-
Constructor Details
-
Game
-
-
Method Details
-
getVersion
public com.mojang.bridge.game.GameVersion getVersion()- Specified by:
getVersion
in interfacecom.mojang.bridge.game.RunningGame
-
getSelectedLanguage
public com.mojang.bridge.game.Language getSelectedLanguage()- Specified by:
getSelectedLanguage
in interfacecom.mojang.bridge.game.RunningGame
-
getCurrentSession
@Nullable public com.mojang.bridge.game.GameSession getCurrentSession()- Specified by:
getCurrentSession
in interfacecom.mojang.bridge.game.RunningGame
-
getPerformanceMetrics
public com.mojang.bridge.game.PerformanceMetrics getPerformanceMetrics()- Specified by:
getPerformanceMetrics
in interfacecom.mojang.bridge.game.RunningGame
-
setSessionEventListener
public void setSessionEventListener(com.mojang.bridge.launcher.SessionEventListener p_90746_) - Specified by:
setSessionEventListener
in interfacecom.mojang.bridge.game.RunningGame
-
onStartGameSession
public void onStartGameSession() -
onLeaveGameSession
public void onLeaveGameSession()
-