Class PlayerUntrackEntityEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.papermc.paper.event.player.PlayerUntrackEntityEvent

@NullMarked public class PlayerUntrackEntityEvent extends PlayerEvent
Is called when a Player untracks an Entity.

Adding or removing entities from the world at the point in time this event is called is completely unsupported and should be avoided.

Since:
1.19.2
  • Constructor Details

  • Method Details

    • getEntity

      public Entity getEntity()
      Gets the entity that will be untracked
      Returns:
      the entity untracked
      Since:
      1.19.2
    • getHandlerList

      public static HandlerList getHandlerList()
      Since:
      1.19.2
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
      Since:
      1.19.2