public class MinecraftGame
extends java.lang.Object
implements com.mojang.bridge.game.RunningGame
コンストラクタと説明 |
---|
MinecraftGame(Minecraft p_i51163_1_) |
修飾子とタイプ | メソッドと説明 |
---|---|
com.mojang.bridge.game.GameSession |
getCurrentSession()
Gets the current game session.
|
com.mojang.bridge.game.PerformanceMetrics |
getPerformanceMetrics()
Gets the current performance metrics.
|
com.mojang.bridge.game.Language |
getSelectedLanguage()
Gets the currently selected language.
|
com.mojang.bridge.game.GameVersion |
getVersion()
Gets the version of the running game.
|
void |
leaveGameSession() |
void |
setSessionEventListener(com.mojang.bridge.launcher.SessionEventListener p_setSessionEventListener_1_)
Sets the callbacks for session events.
|
void |
startGameSession() |
public MinecraftGame(Minecraft p_i51163_1_)
public com.mojang.bridge.game.GameVersion getVersion()
com.mojang.bridge.game.RunningGame
getVersion
インタフェース内 com.mojang.bridge.game.RunningGame
public com.mojang.bridge.game.Language getSelectedLanguage()
com.mojang.bridge.game.RunningGame
getSelectedLanguage
インタフェース内 com.mojang.bridge.game.RunningGame
@Nullable public com.mojang.bridge.game.GameSession getCurrentSession()
com.mojang.bridge.game.RunningGame
A "game session" is defined as an actual gameplay session, such as playing in singleplayer, not the client's
own session. See the documentation for GameSession
for more.
This method may return a "snapshot" of the current session information, and may not be kept up to date.
Launchers should call this method to get a fresh GameSession
whenever required.
getCurrentSession
インタフェース内 com.mojang.bridge.game.RunningGame
public com.mojang.bridge.game.PerformanceMetrics getPerformanceMetrics()
com.mojang.bridge.game.RunningGame
This method may return a "snapshot" of the current metrics, and may not be kept up to date.
Launchers should call this method to get a fresh PerformanceMetrics
whenever required.
getPerformanceMetrics
インタフェース内 com.mojang.bridge.game.RunningGame
public void setSessionEventListener(com.mojang.bridge.launcher.SessionEventListener p_setSessionEventListener_1_)
com.mojang.bridge.game.RunningGame
`null` may be set to remove the existing listener.
The provided listener will be notified about any "game session" events.
setSessionEventListener
インタフェース内 com.mojang.bridge.game.RunningGame
p_setSessionEventListener_1_
- A new listener, or null
.public void startGameSession()
public void leaveGameSession()