Posted July 10, 20223 yr 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?
July 10, 20223 yr Author 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))
July 10, 20223 yr Author 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?
July 10, 20223 yr you need to use the MOD bus, since RegisterKeyMappingsEvent is a instance of IModBusEvent
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.