Class ServerBlockEntityEvents

java.lang.Object
net.fabricmc.fabric.api.event.lifecycle.v1.ServerBlockEntityEvents

public final class ServerBlockEntityEvents
extends Object
  • Field Details

    • BLOCK_ENTITY_LOAD

      public static final Event<ServerBlockEntityEvents.Load> BLOCK_ENTITY_LOAD
      Called when an BlockEntity is loaded into a ServerWorld.

      When this is event is called, the block entity is already in the world.

    • BLOCK_ENTITY_UNLOAD

      public static final Event<ServerBlockEntityEvents.Unload> BLOCK_ENTITY_UNLOAD
      Called when an BlockEntity is about to be unloaded from a ServerWorld.

      When this event is called, the block entity is still present on the world.