Kragast Posted November 17, 2020 Posted November 17, 2020 (edited) 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, 2020 by Kragast Quote
vemerion Posted November 17, 2020 Posted November 17, 2020 17 minutes ago, Kragast said: It does nothing. Why? The method has to be static. Quote
Kragast Posted November 17, 2020 Author Posted November 17, 2020 4 minutes ago, vemerion said: The method has to be static. Yes, thank you! Quote
Kragast Posted November 17, 2020 Author Posted November 17, 2020 9 minutes ago, diesieben07 said: Do not use @OnlyIn. Why? There is no server key-bindings Quote
Recommended Posts
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.