public class MinecraftGame
extends java.lang.Object
implements com.mojang.bridge.game.RunningGame
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MinecraftGame.MinecraftPerformanceMetrics |
Modifier and Type | Field and Description |
---|---|
private Minecraft |
gameInstance |
private com.mojang.bridge.launcher.Launcher |
launcher |
private com.mojang.bridge.launcher.SessionEventListener |
sessionListener |
Constructor and Description |
---|
MinecraftGame(Minecraft p_i51163_1_) |
Modifier and Type | Method and 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 |
leaveGameSession() |
void |
setSessionEventListener(com.mojang.bridge.launcher.SessionEventListener p_setSessionEventListener_1_) |
void |
startGameSession() |
private final Minecraft gameInstance
@Nullable private final com.mojang.bridge.launcher.Launcher launcher
private com.mojang.bridge.launcher.SessionEventListener sessionListener
public MinecraftGame(Minecraft p_i51163_1_)
public com.mojang.bridge.game.GameVersion getVersion()
getVersion
in interface com.mojang.bridge.game.RunningGame
public com.mojang.bridge.game.Language getSelectedLanguage()
getSelectedLanguage
in interface com.mojang.bridge.game.RunningGame
@Nullable public com.mojang.bridge.game.GameSession getCurrentSession()
getCurrentSession
in interface com.mojang.bridge.game.RunningGame
public com.mojang.bridge.game.PerformanceMetrics getPerformanceMetrics()
getPerformanceMetrics
in interface com.mojang.bridge.game.RunningGame
public void setSessionEventListener(com.mojang.bridge.launcher.SessionEventListener p_setSessionEventListener_1_)
setSessionEventListener
in interface com.mojang.bridge.game.RunningGame
public void startGameSession()
public void leaveGameSession()