diff options
Diffstat (limited to 'src/main/java/com/anthonyhilyard/iceberg/events/EntityFluidEvents.java')
-rw-r--r-- | src/main/java/com/anthonyhilyard/iceberg/events/EntityFluidEvents.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/main/java/com/anthonyhilyard/iceberg/events/EntityFluidEvents.java b/src/main/java/com/anthonyhilyard/iceberg/events/EntityFluidEvents.java deleted file mode 100644 index 3ffea9a..0000000 --- a/src/main/java/com/anthonyhilyard/iceberg/events/EntityFluidEvents.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.anthonyhilyard.iceberg.events; - -import net.fabricmc.fabric.api.event.Event; -import net.fabricmc.fabric.api.event.EventFactory; -import net.minecraft.world.entity.Entity; -import net.minecraft.world.level.material.Fluid; - - -public final class EntityFluidEvents -{ - public EntityFluidEvents() { } - - /** - * Called when an Entity enters a new fluid. - */ - public static final Event<EntityFluidEvents.Entered> ENTERED = EventFactory.createArrayBacked(EntityFluidEvents.Entered.class, callbacks -> (entity, fluid) -> { - for (EntityFluidEvents.Entered callback : callbacks) - { - callback.onEntered(entity, fluid); - } - }); - - /** - * Called when an Entity exits a fluid. - */ - public static final Event<EntityFluidEvents.Exited> EXITED = EventFactory.createArrayBacked(EntityFluidEvents.Exited.class, callbacks -> (entity, fluid) -> { - for (EntityFluidEvents.Exited callback : callbacks) - { - callback.onExited(entity, fluid); - } - }); - - @FunctionalInterface - public interface Entered - { - void onEntered(Entity entity, Fluid fluid); - } - - @FunctionalInterface - public interface Exited - { - void onExited(Entity entity, Fluid fluid); - } -}
\ No newline at end of file |