Class PlayerEvent.StopTracking

Enclosing class:
PlayerEvent

public static class PlayerEvent.StopTracking extends PlayerEvent
Fired when an Entity is stopped to be "tracked" by this player (the player no longer receives updates about this entity, e.g. motion).

This event is not cancellable, and is fired on the game event bus.

  • Field Details

    • target

      private final Entity target
  • Constructor Details

    • StopTracking

      public StopTracking(Player player, Entity target)
  • Method Details

    • getTarget

      public Entity getTarget()
      The Entity no longer being tracked.