Package net.minecraft.client
Class MinecraftGame
- java.lang.Object
-
- net.minecraft.client.MinecraftGame
-
- All Implemented Interfaces:
com.mojang.bridge.game.RunningGame
public class MinecraftGame extends java.lang.Object implements com.mojang.bridge.game.RunningGame
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
MinecraftGame.MinecraftPerformanceMetrics
-
Constructor Summary
Constructors Constructor Description MinecraftGame(Minecraft p_i51163_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mojang.bridge.game.GameSession
getCurrentSession()
com.mojang.bridge.game.PerformanceMetrics
getPerformanceMetrics()
com.mojang.bridge.game.Language
getSelectedLanguage()
com.mojang.bridge.game.GameVersion
getVersion()
void
onLeaveGameSession()
void
onStartGameSession()
void
setSessionEventListener(com.mojang.bridge.launcher.SessionEventListener p_setSessionEventListener_1_)
-
-
-
Field Detail
-
minecraft
private final Minecraft minecraft
-
launcher
@Nullable private final com.mojang.bridge.launcher.Launcher launcher
-
listener
private com.mojang.bridge.launcher.SessionEventListener listener
-
-
Constructor Detail
-
MinecraftGame
public MinecraftGame(Minecraft p_i51163_1_)
-
-
Method Detail
-
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_setSessionEventListener_1_)
- Specified by:
setSessionEventListener
in interfacecom.mojang.bridge.game.RunningGame
-
onStartGameSession
public void onStartGameSession()
-
onLeaveGameSession
public void onLeaveGameSession()
-
-