tutorial:keybinds
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
tutorial:keybinds [2019/04/06 21:02] – created draylar | tutorial:keybinds [2019/04/06 21:04] – draylar | ||
---|---|---|---|
Line 45: | Line 45: | ||
ClientTickCallback.EVENT.register(e -> | ClientTickCallback.EVENT.register(e -> | ||
{ | { | ||
- | if(keyBinding.wasPressed()) System.out.println(" | + | if(keyBinding.isPressed()) System.out.println(" |
}); | }); | ||
| | ||
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: 2023/12/27 13:14 by 2601:188:cb7c:25a0:19fa:9122:4e5a:fad1