Posted April 30, 20205 yr Hello, I already created this topic but scince 1.12.2 is no longer supported here, I updated to 1.15.2. As the title says, I'm trying to clear the chat, I mean how to reset the chat, like when you enter a world. Anyone knows how to do this ? Edited April 30, 20205 yr by McPqndq
May 6, 20205 yr If you look in the code yourself you may not have to wait for such a long time. But here it is: NewChatGui#clearChatMessages good luck ? Edited May 6, 20205 yr by Niprow I will make fun of you if you are not able to look into the (vanilla-) code.
May 8, 20205 yr Author Oh yeah thanks ! I got it working. And btw, how I am supposed to "look in the code myself" ? Idrk how to do this... Also, I found this in the forge javadoc : public void clearChatMessages(boolean p_146231_1_) ... why do they have to give these weird names?
May 8, 20205 yr Quote And btw, how I am supposed to "look in the code myself" ? Idrk how to do this... If you're using Eclipse, in package explorer (where your src/main/java and src/main/resources are) look for Project and External Dependedncies: The first one contains all of the main game code. This is where all the important stuff you should look through is. The second one is just launcher code, which you can pretty much ignore 99% of the time. The third one, "client-extra", is where you can find Minecraft's resources, like images, models, recipes, etc. It's a nice reference to have on hand. Quote Also, I found this in the forge javadoc : public void clearChatMessages(boolean p_146231_1_) ... why do they have to give these weird names The weird names like "p_146231_1_" are just auto generated names from decompiling Minecraft's code. Forge does its best to rename them automatically, but not every variable can easily be accounted for. I think the community can help contribute to the translation in the Forge GitHub. Edited May 8, 20205 yr by Azaka7
May 9, 20205 yr Author Thank you for you answer Azaka7, however, I don't have " Project and External Dependedncies" in the eclipse package explorer, here is how it looks like...
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.