Interface EntityTrackingEvents.StartTracking

Enclosing class:
EntityTrackingEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EntityTrackingEvents.StartTracking
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onStartTracking​(net.minecraft.entity.Entity trackedEntity, net.minecraft.server.network.ServerPlayerEntity player)
    Called before an entity starts getting tracked by a player.
  • Method Details

    • onStartTracking

      void onStartTracking(net.minecraft.entity.Entity trackedEntity, net.minecraft.server.network.ServerPlayerEntity player)
      Called before an entity starts getting tracked by a player.
      Parameters:
      trackedEntity - the entity that will be tracked
      player - the player that will track the entity