Class PlayerHideEntityEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerHideEntityEvent

@Experimental public class PlayerHideEntityEvent extends PlayerEvent
Called when a visible entity is hidden from a player.
This event is only called when the entity's visibility status is actually changed.
This event is called regardless of if the entity was within tracking range.
See Also:
API Note:
draft API
  • Constructor Details

    • PlayerHideEntityEvent

      public PlayerHideEntityEvent(@NotNull Player who, @NotNull Entity entity)
  • Method Details

    • getEntity

      @NotNull public Entity getEntity()
      Gets the entity which has been hidden from the player.
      Returns:
      the hidden entity
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()