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

    • PlayerShowEntityEvent

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

    • getEntity

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

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

      @NotNull public static HandlerList getHandlerList()