public interface KeyHandler
Use
ModKeyBinding to register and assign what key pressed will call onKeyPressed(KeyBinding)
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onKeyPressed(net.minecraft.client.settings.KeyBinding binding)
This method will be called when the key with
ModKeyBinding.keyCode() is pressed. |
void onKeyPressed(net.minecraft.client.settings.KeyBinding binding)
ModKeyBinding.keyCode() is pressed.binding - The key binding detail information.