Class PlayerShowEntityEvent

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

public class PlayerShowEntityEvent extends PlayerEvent
Called when a hidden entity is shown to a player.
This event is only called when the entity's visibility status is actually changed.
This event is called regardless of whether the entity was within tracking range.
See Also:
  • Constructor Details Link icon

    • PlayerShowEntityEvent Link icon

      public PlayerShowEntityEvent(@NotNull Player who, @NotNull Entity entity)
  • Method Details Link icon

    • getEntity Link icon

      @NotNull public Entity getEntity()
      Gets the entity which has been shown to the player.
      Returns:
      the shown entity
    • getHandlers Link icon

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

      @NotNull public static HandlerList getHandlerList()