User Tools

Site Tools


tutorial:keybinds

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorial:keybinds [2019/04/06 21:02]
draylar created
tutorial:keybinds [2019/04/06 21:04] (current)
draylar
Line 45: Line 45:
   ClientTickCallback.EVENT.register(e ->   ClientTickCallback.EVENT.register(e ->
   {   {
-    if(keyBinding.wasPressed()) System.out.println("​was pressed!"​);​+    if(keyBinding.isPressed()) System.out.println("​was pressed!"​);​
   });   });
   ​   ​
 Keep note that this is entirely client-side. To have the server respond to a keybind, you'll need to send a custom packet and have the server handle it separately. Keep note that this is entirely client-side. To have the server respond to a keybind, you'll need to send a custom packet and have the server handle it separately.
tutorial/keybinds.txt ยท Last modified: 2019/04/06 21:04 by draylar