mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Implement velocity module (#151)
Co-authored-by: jmp <[email protected]>
This commit is contained in:
1 parent
eb7ec4353f
commit
e402ef2e70
26 files changed
+702
-28
No files matched your search
@@ -5,8 +5,10 @@ import net.kyori.event.EventSubscriber;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
record EventSubscriberImpl<T extends CarbonEvent>(Consumer<T> consumer, int postOrder, boolean acceptsCancelled) implements EventSubscriber<T> {
|
||||
|
||||
@Override
|
||||
public void on(final @NonNull T event) {
|
||||
this.consumer.accept(event);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user