blob: b5d621dd5dabc50bf3bf40775b37c1de1653cae8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package me.xmrvizzy.skyblocker.utils.events;
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.util.ActionResult;
public interface SkyblockJoinCallback {
Event<SkyblockJoinCallback> EVENT = EventFactory.createArrayBacked(SkyblockJoinCallback.class,
(listeners) -> () -> {
for (SkyblockJoinCallback listener : listeners) {
ActionResult result = listener.join();
if(result != ActionResult.PASS) {
return result;
}
}
return ActionResult.PASS;
});
ActionResult join();
}
|