Hi, I want to use the ServerTickEvent, but I need to register the Event handler using FMLCommonHandler.instance().bus().register(), but this method is deprecated in Forge 1.12. Any ideas on what method I should use instead ?
The FML event bus (FMLCommonHandler#bus) was merged with the Forge event bus (MinecraftForge.EVENT_BUS) in 1.8, so use the Forge event bus.
Forge's documentation explains events (including automatic registration) in more detail here.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Hi, I want to use the ServerTickEvent, but I need to register the Event handler using FMLCommonHandler.instance().bus().register(), but this method is deprecated in Forge 1.12. Any ideas on what method I should use instead ?
Thank you
The FML event bus (FMLCommonHandler#bus) was merged with the Forge event bus (MinecraftForge.EVENT_BUS) in 1.8, so use the Forge event bus.
Forge's documentation explains events (including automatic registration) in more detail here.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Thank you for your answer ! I'll try that right away.