Package dev.inputbooster.api.events
Class InputBoosterEvent
java.lang.Object
dev.inputbooster.api.events.InputBoosterEvent
Represents an event fired by InputBooster.
Example usage
InputBoosterAPI.getInstance().registerListener(event -> {
switch (event.type()) {
case ATTACK_QUEUED -> myMod.onAttack();
case POLL_RATE_CHANGED -> System.out.println("Hz: " + event.intValue());
case MOD_TOGGLED -> System.out.println("Active: " + event.boolValue());
case BURST_MODE_STARTED -> System.out.println("Burst!");
}
});
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAll event types fired by InputBooster. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintValue()static InputBoosterEventof(InputBoosterEvent.Type type) static InputBoosterEventofBool(InputBoosterEvent.Type type, boolean value) static InputBoosterEventofInt(InputBoosterEvent.Type type, int value) static InputBoosterEventofString(InputBoosterEvent.Type type, String value) longtoString()type()