Posted April 23, 20169 yr Hey everyone! I'm doing some playing around with my mod and have the ingame gui set up. I want to detect when this closes so I can fire the NameFormat event again. So far I can't find anything related to a Gui close event. Am I not looking in the right spot or is this not a thing? github: https://github.com/KaminoCoding/FriendNamer/tree/feature/ingameNameChange
April 23, 20169 yr GuiScreen#onGuiClosed is called when the GuiScreen is closed. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
April 30, 20169 yr Author Follow up question... I want to post a nameformat event to forge, but every time I do it I get a nullLangPointerException back.. I know that means that i'm passing nothing as a parameter. This is the error i'm getting https://gist.github.com/Cyb3rWarri0r8/ea6d2cd20d378eb59795a03fcc9d930f Code: https://github.com/KaminoCoding/FriendNamer/blob/d6b5bfd163ececc259b753234df5048f12168df8/src/main/java/io/cyb3rwarri0r8/friendnamer/client/NamesEventHandler.java https://github.com/KaminoCoding/FriendNamer/blob/d6b5bfd163ececc259b753234df5048f12168df8/src/main/java/io/cyb3rwarri0r8/friendnamer/client/FriendNamerGuiConfig.java https://github.com/KaminoCoding/FriendNamer/blob/d6b5bfd163ececc259b753234df5048f12168df8/src/main/java/io/cyb3rwarri0r8/friendnamer/client/ConfigHandler.java
April 30, 20169 yr mc.isGamePaused() public Minecraft mc; #NeverAssigned Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 1, 20169 yr Author follow up to follow up.. I can't for the life of me get the name to change. What am I doing wrong? It will work when changing from the homescreen but the ingame change doesn't spark a change of the player's username. Is something missing that I need to fire? I'm seriously stumped as to what it could be. Code in question: https://github.com/KaminoCoding/FriendNamer/blob/feature/ingameNameChange/src/main/java/io/cyb3rwarri0r8/friendnamer/client/ConfigHandler.java https://github.com/KaminoCoding/FriendNamer/blob/feature/ingameNameChange/src/main/java/io/cyb3rwarri0r8/friendnamer/client/NamesEventHandler.java I've gone through and even directly fired the events and nothing happens. Here are the uncommitted changes:
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.