Class ClientBlockEntityEvents

java.lang.Object
net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientBlockEntityEvents

public final class ClientBlockEntityEvents extends Object
  • Field Details

    • BLOCK_ENTITY_LOAD

      public static final Event<ClientBlockEntityEvents.Load> BLOCK_ENTITY_LOAD
      Called when a BlockEntity is loaded into a ClientWorld.

      When this event is called, the block entity is already in the world. However, its data might not be loaded yet, so don't rely on it.

    • BLOCK_ENTITY_UNLOAD

      public static final Event<ClientBlockEntityEvents.Unload> BLOCK_ENTITY_UNLOAD
      Called when a BlockEntity is about to be unloaded from a ClientWorld.

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