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 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

      void unregisterAll(@NotNull O owner)
    • post

      <T extends TachyonEvent> void post(@NotNull T event)