Jump to content

Updating project to 1.19 (from 1.18.2)


Greenem

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

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.



×
×
  • Create New...

Important Information

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