isTabbedIn

fun isTabbedIn(): Boolean

Gets whether the Minecraft window is active and in the foreground of the user's screen.

Return

true if the game is active, false otherwise

Sources

Link copied to clipboard