net.minecraft.client.gui.GuiIngameMenu Java Examples

The following examples show how to use net.minecraft.client.gui.GuiIngameMenu. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClientStateMachine.java    From malmo with MIT License 6 votes vote down vote up
@Override
protected void execute()
{
    serverTickCount = 0;
    clientTickCount = 0;
    totalTicks = 0;

    if (Minecraft.getMinecraft().getIntegratedServer() != null && Minecraft.getMinecraft().world != null)
    {
        // If the integrated server has been opened to the LAN, we won't be able to pause it.
        // To get around this, we need to make it think it's not open, by modifying its isPublic flag.
        if (Minecraft.getMinecraft().getIntegratedServer().getPublic())
        {
            if (!killPublicFlag(Minecraft.getMinecraft().getIntegratedServer()))
            {
                // Can't pause, don't want to risk the hang - so bail.
                episodeHasCompletedWithErrors(ClientState.ERROR_CANNOT_CREATE_WORLD, "Can not pause the old server since it's open to LAN; no way to safely create new world.");
            }
        }

        Minecraft.getMinecraft().displayGuiScreen(new GuiIngameMenu());
    }
}
 
Example #2
Source File: WrapperGuiIngameMenu.java    From ClientBase with MIT License 4 votes vote down vote up
public WrapperGuiIngameMenu(GuiIngameMenu var1) {
    super(var1);
    this.real = var1;
}
 
Example #3
Source File: WrapperGuiIngameMenu.java    From ClientBase with MIT License 4 votes vote down vote up
public GuiIngameMenu unwrap() {
    return this.real;
}