Jump to content

Check if chat is open ?


Recommended Posts

how would you use that to set a keybinding?  :)


And more importantly, when do you want to check if it's open?

Do you want to be able to do like this:

if (Chat.isOpen) {
  // Do stuff

Or do you want to know when it gets opened?

You are quite vague inn your request, so I need some clarification :P

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

I have added a keyBind that open a GuiScreen .. When the chat is open and i press the key © , the gui appears and I can't write in the chat textbox .. I want minecraft to see if chat is open before open the gui ..


example :


this.mc.displayGuiScreen(new GuiFriends());



GuiChat is the boolean that check if chat is open

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.