Interface RtpResult


public interface RtpResult
What came out of an RTP request. Check wasSuccessful() first, on failure only the reason and timestamps mean anything.
  • Method Details

    • wasSuccessful

      boolean wasSuccessful()
      Checks if the teleport worked.
      Returns:
      true on success
    • getDestination

      org.bukkit.Location getDestination()
      Gets where the player landed, null on failure.
      Returns:
      the destination, or null
    • getWorld

      org.bukkit.World getWorld()
      Gets the world the request ran in.
      Returns:
      the world
    • getFailureReason

      String getFailureReason()
      Gets why it failed, null on success.
      Returns:
      failure reason, or null
    • getRequestTimestamp

      long getRequestTimestamp()
      Gets when the request was made, in millis.
      Returns:
      request time in millis
    • getCompletionTimestamp

      long getCompletionTimestamp()
      Gets when the request finished, in millis.
      Returns:
      completion time in millis
    • getSearchAttempts

      int getSearchAttempts()
      Gets how many spots were tried.
      Returns:
      search attempts