diff options
author | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-06-09 12:34:08 +0100 |
---|---|---|
committer | nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> | 2022-06-09 12:34:08 +0100 |
commit | 3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58 (patch) | |
tree | 2076f0c00ca7b91e3bcaf6f76bd606aa941e3c7f /src/main/java/cc/polyfrost/oneconfig/events | |
parent | 9624c38e07c7f18ec754cf5ee14d54df31e708dc (diff) | |
download | OneConfig-3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58.tar.gz OneConfig-3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58.tar.bz2 OneConfig-3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58.zip |
a few little things that I noticed when doc'ing
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/events')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/events/EventManager.java | 6 | ||||
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/events/event/InitializationEvent.java | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java b/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java index cb75a12..05bb196 100644 --- a/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java +++ b/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java @@ -10,9 +10,13 @@ public final class EventManager { /** * The instance of the {@link EventManager}. */ - public static final EventManager INSTANCE = new EventManager(); + private static final EventManager INSTANCE = new EventManager(); private final EventBus eventBus = new EventBus(new LMFInvoker(), Throwable::printStackTrace); + public static EventManager getEventManager() { + return INSTANCE; + } + private EventManager() { } diff --git a/src/main/java/cc/polyfrost/oneconfig/events/event/InitializationEvent.java b/src/main/java/cc/polyfrost/oneconfig/events/event/InitializationEvent.java new file mode 100644 index 0000000..c068914 --- /dev/null +++ b/src/main/java/cc/polyfrost/oneconfig/events/event/InitializationEvent.java @@ -0,0 +1,5 @@ +package cc.polyfrost.oneconfig.events.event; + +/** Called when the game is initialized. */ +public class InitializationEvent { +} |