aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/anthonyhilyard/iceberg/events/CriterionCallback.java
diff options
context:
space:
mode:
authorAnthony Hilyard <anthony.hilyard@gmail.com>2022-06-14 17:12:07 -0700
committerAnthony Hilyard <anthony.hilyard@gmail.com>2022-06-14 17:12:07 -0700
commitbb600c7a27816d8390e5bb44cfe53d8736070902 (patch)
tree29c91330c33b81dcb7c3abb648409284c297655e /src/main/java/com/anthonyhilyard/iceberg/events/CriterionCallback.java
parent39398536fb13a0d08308229f9b38e9d1b58d0f54 (diff)
downloadIceberg-bb600c7a27816d8390e5bb44cfe53d8736070902.tar.gz
Iceberg-bb600c7a27816d8390e5bb44cfe53d8736070902.tar.bz2
Iceberg-bb600c7a27816d8390e5bb44cfe53d8736070902.zip
Updated to support 1.18.2.
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/events/CriterionCallback.java')
-rw-r--r--src/main/java/com/anthonyhilyard/iceberg/events/CriterionCallback.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/events/CriterionCallback.java b/src/main/java/com/anthonyhilyard/iceberg/events/CriterionCallback.java
index f46f082..0486304 100644
--- a/src/main/java/com/anthonyhilyard/iceberg/events/CriterionCallback.java
+++ b/src/main/java/com/anthonyhilyard/iceberg/events/CriterionCallback.java
@@ -1,7 +1,5 @@
package com.anthonyhilyard.iceberg.events;
-import net.fabricmc.fabric.api.event.Event;
-import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.advancements.Advancement;
import net.minecraft.world.entity.player.Player;
@@ -10,7 +8,7 @@ import net.minecraft.world.entity.player.Player;
*/
public interface CriterionCallback
{
- Event<CriterionCallback> EVENT = EventFactory.createArrayBacked(CriterionCallback.class,
+ ToggleableEvent<CriterionCallback> EVENT = ToggleableEvent.create(CriterionCallback.class,
(listeners) -> (player, advancement, criterionKey) -> {
for (CriterionCallback listener : listeners)
{