Does the GUI pause the game?

Published by Goldorion on Wed, 05/13/2020 - 15:34
Upvotes: 2
Issue description

Hi,

There are some Vanilla GUIs that pause the game like the Esc menu, and there is a method to decide if, when the GUI is opened, the GUI will pause the game or not (in single-player only evidently).

I found this method before Minecraft 1.13, but it should be the same.

    @Override
    public boolean doesGuiPauseGame()
    {
        return true;
    }

 

Issue comments



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.