Class ServerEntityEvents

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

public final class ServerEntityEvents extends Object
  • Field Details

    • ENTITY_LOAD

      @Deprecated public static final Event<ServerEntityEvents.Load> ENTITY_LOAD
      Deprecated.
      Use Quilt Entity Events' ServerEntityLoadEvents.AFTER_LOAD instead.
      Called when an Entity is loaded into a ServerWorld.

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

    • ENTITY_UNLOAD

      @Deprecated public static final Event<ServerEntityEvents.Unload> ENTITY_UNLOAD
      Deprecated.
      Use Quilt Entity Events' ServerEntityLoadEvents.AFTER_UNLOAD instead.
      Called when an Entity is unloaded from a ServerWorld.

      This event is called before the entity is removed from the world.

    • EQUIPMENT_CHANGE

      public static final Event<ServerEntityEvents.EquipmentChange> EQUIPMENT_CHANGE
      Called during LivingEntity.tick() if the Entity's equipment has been changed or mutated.

      This event is also called when the entity joins the world. A change in equipment is determined by ItemStack.areEqual(ItemStack, ItemStack).