fabric-lifecycle-events-v1-2.6.9+33df5e6e6f.jar

Download file
    package net.fabricmc.fabric.api.event.lifecycle.v1;

import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.class_2586;
import net.minecraft.class_3218;

public final class ServerBlockEntityEvents {
   public static final Event<Load> BLOCK_ENTITY_LOAD = EventFactory.createArrayBacked(Load.class, (callbacks) -> (blockEntity, world) -> {
         for(Load callback : callbacks) {
            callback.onLoad(blockEntity, world);
         }

      });
   public static final Event<Unload> BLOCK_ENTITY_UNLOAD = EventFactory.createArrayBacked(Unload.class, (callbacks) -> (blockEntity, world) -> {
         for(Unload callback : callbacks) {
            callback.onUnload(blockEntity, world);
         }

      });

   private ServerBlockEntityEvents() {
   }

   @FunctionalInterface
   public interface Load {
      void onLoad(class_2586 var1, class_3218 var2);
   }

   @FunctionalInterface
   public interface Unload {
      void onUnload(class_2586 var1, class_3218 var2);
   }
}
    
Download file