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. Teleporting entities in the world at the point in time this event is called yields an undefined tracker behavior and should be avoided.

  • Constructor Details

  • Method Details

    • getEntity

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

      public static HandlerList getHandlerList()
    • getHandlers

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