tutorial:keybinds
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:keybinds [2020/07/25 19:04] – Update deprecated ClientTickCallback to use ClientTickEvents kot | tutorial:keybinds [2020/08/09 19:15] – Add link to example emmanuelmess | ||
---|---|---|---|
Line 10: | Line 10: | ||
* react to the key being pressed | * react to the key being pressed | ||
+ | |||
+ | See [[https:// | ||
==== Creating your Keybind ==== | ==== Creating your Keybind ==== | ||
Line 52: | Line 54: | ||
<code java> | <code java> | ||
- | ClientTickEvents.START_CLIENT_TICK.register(client -> { | + | ClientTickEvents.END_CLIENT_TICK.register(client -> { |
while (keyBinding.wasPressed()) System.out.println(" | while (keyBinding.wasPressed()) System.out.println(" | ||
}); | }); |
tutorial/keybinds.txt · Last modified: 2023/12/27 13:14 by 2601:188:cb7c:25a0:19fa:9122:4e5a:fad1