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

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

    • getEntity

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

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

      @NotNull public static @NotNull HandlerList getHandlerList()