Package dev.inputbooster.api.events
Interface InputBoosterEventListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for receiving
InputBoosterEvent notifications.
InputBoosterAPI.getInstance().registerListener(event -> {
if (event.type() == InputBoosterEvent.Type.ATTACK_QUEUED) {
// your logic here
}
});
Listeners are called on the Minecraft main thread from within
InputBooster's client tick handler. Keep implementations short and
non-blocking; do not call OpenGL or do heavy I/O here.-
Method Summary
Modifier and TypeMethodDescriptionvoidonEvent(InputBoosterEvent event) Called when InputBooster fires an event.
-
Method Details
-
onEvent
Called when InputBooster fires an event.- Parameters:
event- the event; never null
-