Class RtpSearchCompleteEvent

java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.rtp.event.RtpSearchCompleteEvent

public class RtpSearchCompleteEvent extends org.bukkit.event.Event
Fired when the safe-location search finds a candidate location.

Observe-only: the search already finished, so this event cannot be cancelled.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    RtpSearchCompleteEvent(org.bukkit.entity.Player player, org.bukkit.World world, org.bukkit.Location location, int attempts)
    Creates a new RTP search complete event.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns how many search attempts were needed.
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.Location
    Returns the candidate location (a copy), or null if none was found.
    org.bukkit.entity.Player
    Returns the requesting player.
    org.bukkit.World
    Returns the world that was searched.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RtpSearchCompleteEvent

      public RtpSearchCompleteEvent(org.bukkit.entity.Player player, org.bukkit.World world, org.bukkit.Location location, int attempts)
      Creates a new RTP search complete event.
      Parameters:
      player - the requesting player
      world - the world that was searched
      location - the candidate location, or null if none was found
      attempts - how many search attempts were needed
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns the requesting player.
      Returns:
      the player
    • getWorld

      public org.bukkit.World getWorld()
      Returns the world that was searched.
      Returns:
      the world
    • getLocation

      public org.bukkit.Location getLocation()
      Returns the candidate location (a copy), or null if none was found.
      Returns:
      the location, or null
    • getAttempts

      public int getAttempts()
      Returns how many search attempts were needed.
      Returns:
      attempt count
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()