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

Hi! i have some question about Forge API....

 

1. How i can parse chat messages?

2. How i can draw strings ingame? Not blocks... only Client Side... a text...

3. I can modify the package "net.minecraft.client.gui" the class "GuiIngame.java" and compile a mod?

 

 

Sry for my bad english and thx :)

  • Author

Ummm reHi!

 

Pne problem.... i Handle a ChatMessages

NetworkRegistry.instance().registerChatListener(new ChatListenerHandler(this));

 

and read good  the chat...

public Packet3Chat clientChat(NetHandler handler, Packet3Chat message)

 

 

But i like not show the message when i filter it.... how i can return a "Packet3Chat" without messages to not show it ingame chat ?¿??

 

Thx!

  • Author

Thx diesieben07 :) finally i made it :D

 

 

I have other question.... How i can get the scale of rendering?

  • Author

Ok i see "ScaledResolution" :P no need more help....

 

 

thx for all!

  • Author

Sry for spam messages... but i have other new question.

 

How i can intercept chat messages from local user?

 

 

Example:

Local User write: "Hi! ppl "
Mod read: "Hi! ppl "
Mod change: "/tc Hi! ppl "
Mod send chat message: "/tc Hi! ppl "
Server received: "/tc Hi! ppl "

 

 

thx!

  • Author

diesieben07 thx for your help ;) I finally made it modifying the class GuiChat.java ;)  problem? I need distribute a "awj.class" file :\

 

Now i have other question... How i can change the size of the font when i use "FontRenderer" class?? i need other way? create a new wayport? :\

 

thx for all ;)

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.