diff options
author | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2023-10-03 11:13:24 -0400 |
---|---|---|
committer | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2023-10-03 11:13:24 -0400 |
commit | ddceeb2734012f7cd6ed7a7df48cf6e857708788 (patch) | |
tree | 15d48fb8fdba52e271929afa0e7ffed354094791 /src/main/java/me/xmrvizzy/skyblocker/utils/SkyblockEvents.java | |
parent | ec2fe2475610e5c1c705d296a697e92803b8db7a (diff) | |
download | Skyblocker-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.java | 33 |
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(); - } -} |