Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 by McPqndq

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 by Niprow

 I will make fun of you if you are not able to look into the (vanilla-) code.

  • 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? 

 

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:

Capture.png

 

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 by Azaka7

  • 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...

Annotation 2020-05-09 181014.png

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.