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.

Joe6pack

Members
  • Joined

  • Last visited

Everything posted by Joe6pack

  1. Ok, thanks for your help. You can close the topic. I think I need much more time with the basics of Java.
  2. ok i have to give up. i don't have the slightest idea how to use or read chatlines. All the search was unsuccessful. Can not you give me a little tip how the code must look like to access chatlines? I can handle the processing of the array Let's assume there is only one entry in the complete chat and I want to read this... please help me.
  3. it's me again, somehow I can't get to the message even via the gui Minecraft.getMinecraft().player.sendChatMessage("erste Nachricht"); ITextComponent m = new TextComponentString("zweite Nachricht"); Minecraft.getMinecraft().player.sendMessage(m); Minecraft.getMinecraft().player.sendChatMessage("dritte Nachricht"); String msg = Minecraft.getMinecraft().ingameGUI.getChatGUI().getSentMessages().toString(); logger.info(msg); Output: [erste Nachricht, dritte Nachricht] what am i doing wrong?
  4. ok, then I will go on the search for example code and try if I can do it that way. Thank you very much
  5. Hello I just started with java and minecraft modding. I want to implement a very simple task but unfortunately I do not know the right event for it. Messages sent via Minecraft.getMinecraft().player.sendChatMessage(message); from the client to the server I can use: public void onChat(ClientChatReceivedEvent event) to read it back in. However, there are now also messages that are sent via Minecraft.getMinecraft().player.sendMessage(m) only direct to the client. Is there also a possibility to read these messages? Another mod writes these "client only" messages that I want to respond to. Joe6pack

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.