diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/events/EventManager.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/events/EventManager.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java b/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java index 956c9b6..e1c1427 100644 --- a/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java +++ b/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java @@ -14,4 +14,16 @@ public final class EventManager { public EventBus getEventBus() { return eventBus; } + + public void register(Object object) { + eventBus.register(object); + } + + public void unregister(Object object) { + eventBus.unregister(object); + } + + public void post(Object event) { + eventBus.post(event); + } } |