Posted May 19, 20232 yr I'm trying to add GUI to custom workbench. At first i've tryed to register Screen in mode constructor, now i'm trying to do it in another class: @Mod.EventBusSubscriber public class ClientEventSubscriber { @SubscribeEvent public void clientSetup(FMLClientSetupEvent event) { event.enqueueWork( () -> MenuScreens.register(mage_workbench_menu.get(), MageWorkbenchScreen::new) ); } } @Mod.EventBusSubscriber public class ClientEventSubscriber { @SubscribeEvent public void clientSetup(FMLClientSetupEvent event) { event.enqueueWork( () -> MenuScreens.register(mage_workbench_menu.get(), MageWorkbenchScreen::new) ); } } Help me please.
May 20, 20232 yr `@EventBusSubscriber` needs to take in a `value` of your mod ID and the mod bus for the `bus` as that is when the event is executed. Additionally, using `@EventBusSubscriber` requires all methods be static.
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.