diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/events')
4 files changed, 39 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); + } } diff --git a/src/main/java/cc/polyfrost/oneconfig/events/event/ChatReceiveEvent.java b/src/main/java/cc/polyfrost/oneconfig/events/event/ChatReceiveEvent.java new file mode 100644 index 0000000..b69b89b --- /dev/null +++ b/src/main/java/cc/polyfrost/oneconfig/events/event/ChatReceiveEvent.java @@ -0,0 +1,12 @@ +package cc.polyfrost.oneconfig.events.event; + + +import net.minecraft.util.IChatComponent; + +public class ChatReceiveEvent extends CancellableEvent { + public final IChatComponent message; + + public ChatReceiveEvent(IChatComponent message) { + this.message = message; + } +} diff --git a/src/main/java/cc/polyfrost/oneconfig/events/event/LocrawEvent.java b/src/main/java/cc/polyfrost/oneconfig/events/event/LocrawEvent.java new file mode 100644 index 0000000..42565f7 --- /dev/null +++ b/src/main/java/cc/polyfrost/oneconfig/events/event/LocrawEvent.java @@ -0,0 +1,11 @@ +package cc.polyfrost.oneconfig.events.event; + +import cc.polyfrost.oneconfig.utils.hypixel.LocrawInfo; + +public class LocrawEvent { + public final LocrawInfo info; + + public LocrawEvent(LocrawInfo info) { + this.info = info; + } +} diff --git a/src/main/java/cc/polyfrost/oneconfig/events/event/WorldLoadEvent.java b/src/main/java/cc/polyfrost/oneconfig/events/event/WorldLoadEvent.java new file mode 100644 index 0000000..1583fe6 --- /dev/null +++ b/src/main/java/cc/polyfrost/oneconfig/events/event/WorldLoadEvent.java @@ -0,0 +1,4 @@ +package cc.polyfrost.oneconfig.events.event; + +public class WorldLoadEvent { +} |