Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Updating project to 1.19 (from 1.18.2)


Greenem
 Share

Recommended Posts

Hello, I'm updating my mod to 1.19 and, as usual, there are a lot of changes I can't understand it all myself. (Is there like a list of all renamed classes and other changed stuff? The forge 1.19 changelog didn't help)

I'm having issues with this:
- RenderGameOverlayEvent.Text, I used it before for changing f3 screen (with those useful ".getLeft()" and ".getRight()") and now I can't find the replacement
- TextComponent(String s), which was used in player#displayClientMessage(...)

Can someone help me?

Link to comment
Share on other sites

3 minutes ago, Greenem said:

RenderGameOverlayEvent.Text, I used it before for changing f3 screen (with those useful ".getLeft()" and ".getRight()") and now I can't find the replacement

CustomizeGuiOverlayEvent.DebugText

3 minutes ago, Greenem said:

TextComponent(String s), which was used in player#displayClientMessage(...)

Use the static factory methods in Component.

Link to comment
Share on other sites

Thank you so much! I hope it all will work now

And one more question (forgot to ask before): what is the replacement for that class?

net.minecraftforge.client.ClientRegistry

(for .registerKeyBinding(key))

Link to comment
Share on other sites

I have tried it, but it just doesn't call the method

@Mod.EventBusSubscriber(modid = LessF3.MODID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT)
public class TheEvents {

  @SubscribeEvent
  public static void registerKeys(RegisterKeyMappingsEvent e) {
      System.out.println("registering keys"); // to debug this
      // registring
  }

}

Other events in that class work (can be checked with sout), but this doesn't fire at all. What am I doing wrong?

Link to comment
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

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