Class EntityTrackingEvents

java.lang.Object
net.fabricmc.fabric.api.networking.v1.EntityTrackingEvents

public final class EntityTrackingEvents extends Object
Events related to a tracking entities within a player's view distance.
  • Field Details

    • START_TRACKING

      public static final Event<EntityTrackingEvents.StartTracking> START_TRACKING
      An event that is called before player starts tracking an entity. Typically, this occurs when an entity enters a client's view distance. This event is called before the player's client is sent the entity's
      invalid reference
      spawn packet
      .
    • STOP_TRACKING

      public static final Event<EntityTrackingEvents.StopTracking> STOP_TRACKING
      An event that is called after a player has stopped tracking an entity. The client at this point was sent a packet to destroy the entity on the client. The entity still exists on the server.