Package net.godlycow.org.essc.api.rtp
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 Summary
Modifier and TypeMethodDescriptionlongGets when the request finished, in millis.org.bukkit.LocationGets where the player landed, null on failure.Gets why it failed, null on success.longGets when the request was made, in millis.intGets how many spots were tried.org.bukkit.WorldgetWorld()Gets the world the request ran in.booleanChecks if the teleport worked.
-
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
-