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.

@FunctionalInterface public interface InputBoosterEventListener
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 Type
    Method
    Description
    void
    Called when InputBooster fires an event.
  • Method Details

    • onEvent

      void onEvent(InputBoosterEvent event)
      Called when InputBooster fires an event.
      Parameters:
      event - the event; never null