Posted March 4, 201411 yr Hello again! I have a (hopefully) quick question. I have a few keybindings working well, but they are executing even when I type something into chat. Is there a method that I can call that will let me know whether or not the player has the chat window open? I've tried looking through the source code but couldn't find anything. I tried the getChatVisibility() method in EntityPlayerMP, but that returns an int and I couldn't determine what number it would be if chat is open! Thank you in advance!
March 4, 201411 yr This should work for all Minecraft versions: if (Minecraft.getMinecraft().currentScreen == null) { } http://i.imgur.com/NdrFdld.png[/img]
March 4, 201411 yr Author Thank you! I'm in 1.6.4 by the way, I realize now I should have included that
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.