Posted November 17, 20204 yr It does nothing. Why? @Mod.EventBusSubscriber(modid = Mod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) public class ClientEventsHandler { @OnlyIn(Dist.CLIENT) @SubscribeEvent public void onKeyInput(InputEvent.KeyInputEvent event) { System.out.println(event.getKey()); System.out.println("Key is down!"); Mod.LOGGER.info("Key is down!"); Mod.LOGGER.info(event.getKey()); } } Edited November 17, 20204 yr by Kragast
November 17, 20204 yr 17 minutes ago, Kragast said: It does nothing. Why? The method has to be static.
November 17, 20204 yr Author 4 minutes ago, vemerion said: The method has to be static. Yes, thank you!
November 17, 20204 yr Author 9 minutes ago, diesieben07 said: Do not use @OnlyIn. Why? There is no server key-bindings
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.