1
0
forked from Clones/Controlify

🐛 Fix vanilla overrides getting stuck sometimes

This commit is contained in:
isXander
2023-07-08 21:04:58 +01:00
parent a343dad9ed
commit 2b41391a73
6 changed files with 78 additions and 10 deletions

View File

@ -0,0 +1,14 @@
package dev.isxander.controlify.bindings;
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
public interface InputHandledEvent {
void onInputHandled();
Event<InputHandledEvent> EVENT = EventFactory.createArrayBacked(InputHandledEvent.class, (listeners) -> () -> {
for (InputHandledEvent listener : listeners) {
listener.onInputHandled();
}
});
}