aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/xmrvizzy/skyblocker/utils/SkyblockEvents.java
diff options
context:
space:
mode:
authorKevinthegreat <92656833+kevinthegreat1@users.noreply.github.com>2023-10-03 11:13:24 -0400
committerKevinthegreat <92656833+kevinthegreat1@users.noreply.github.com>2023-10-03 11:13:24 -0400
commitddceeb2734012f7cd6ed7a7df48cf6e857708788 (patch)
tree15d48fb8fdba52e271929afa0e7ffed354094791 /src/main/java/me/xmrvizzy/skyblocker/utils/SkyblockEvents.java
parentec2fe2475610e5c1c705d296a697e92803b8db7a (diff)
downloadSkyblocker-ddceeb2734012f7cd6ed7a7df48cf6e857708788.tar.gz
Skyblocker-ddceeb2734012f7cd6ed7a7df48cf6e857708788.tar.bz2
Skyblocker-ddceeb2734012f7cd6ed7a7df48cf6e857708788.zip
Refactor ItemCooldowns
Diffstat (limited to 'src/main/java/me/xmrvizzy/skyblocker/utils/SkyblockEvents.java')
-rw-r--r--src/main/java/me/xmrvizzy/skyblocker/utils/SkyblockEvents.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/utils/SkyblockEvents.java b/src/main/java/me/xmrvizzy/skyblocker/utils/SkyblockEvents.java
deleted file mode 100644
index 2dd83ffa..00000000
--- a/src/main/java/me/xmrvizzy/skyblocker/utils/SkyblockEvents.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package me.xmrvizzy.skyblocker.utils;
-
-import net.fabricmc.api.EnvType;
-import net.fabricmc.api.Environment;
-import net.fabricmc.fabric.api.event.Event;
-import net.fabricmc.fabric.api.event.EventFactory;
-
-@Environment(EnvType.CLIENT)
-public final class SkyblockEvents {
- public static final Event<SkyblockEvents.SkyblockJoin> JOIN = EventFactory.createArrayBacked(SkyblockEvents.SkyblockJoin.class, callbacks -> () -> {
- for (SkyblockEvents.SkyblockJoin callback : callbacks) {
- callback.onSkyblockJoin();
- }
- });
-
- public static final Event<SkyblockEvents.SkyblockLeave> LEAVE = EventFactory.createArrayBacked(SkyblockEvents.SkyblockLeave.class, callbacks -> () -> {
- for (SkyblockEvents.SkyblockLeave callback : callbacks) {
- callback.onSkyblockLeave();
- }
- });
-
- @Environment(EnvType.CLIENT)
- @FunctionalInterface
- public interface SkyblockJoin {
- void onSkyblockJoin();
- }
-
- @Environment(EnvType.CLIENT)
- @FunctionalInterface
- public interface SkyblockLeave {
- void onSkyblockLeave();
- }
-}