Interface EventBus<O>
- All Known Implementing Classes:
TachyonEventBusImpl
public interface EventBus<O>
Contract for the Tachyon Event Bus.
Handles the registration, unregistration, and asynchronous dispatching of events.
Designed to be accessed via the TachyonAPI.
Project Tachyon
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 20/05/2026
-
Method Summary
Modifier and TypeMethodDescription<T extends TachyonEvent>
voidpost(T event) <T extends TachyonEvent>
void<T extends TachyonEvent>
voidunregister(O owner, @NotNull Class<T> eventClass, @NotNull Consumer<T> handler) voidunregisterAll(O owner)
-
Method Details
-
register
<T extends TachyonEvent> void register(@NotNull O owner, @NotNull @NotNull Class<T> eventClass, @NotNull @NotNull Consumer<T> handler) -
unregister
<T extends TachyonEvent> void unregister(@NotNull O owner, @NotNull @NotNull Class<T> eventClass, @NotNull @NotNull Consumer<T> handler) -
unregisterAll
-
post
-