Package net.godlycow.org.essc.api.rtp
Interface RtpPlayerState
public interface RtpPlayerState
A player's RTP state. See
RtpManager.getPlayerState(org.bukkit.entity.Player).-
Method Summary
Modifier and TypeMethodDescriptionlongGets the last completed RTP, in millis.Gets the player.longGets remaining cooldown in seconds, 0 if none.intGets the lifetime RTP count.booleanChecks if the player has a warmup pending.booleanChecks if the player is on cooldown.booleanChecks if an RTP is running for the player.
-
Method Details
-
getPlayerId
UUID getPlayerId()Gets the player.- Returns:
- the player UUID
-
isRtpInProgress
boolean isRtpInProgress()Checks if an RTP is running for the player.- Returns:
- true if in progress
-
isOnCooldown
boolean isOnCooldown()Checks if the player is on cooldown.- Returns:
- true if on cooldown
-
getRemainingCooldownSeconds
long getRemainingCooldownSeconds()Gets remaining cooldown in seconds, 0 if none.- Returns:
- remaining seconds
-
getLastRtpTimestamp
long getLastRtpTimestamp()Gets the last completed RTP, in millis.- Returns:
- last RTP time in millis
-
getTotalRtpCount
int getTotalRtpCount()Gets the lifetime RTP count.- Returns:
- total RTPs
-
hasPendingWarmup
boolean hasPendingWarmup()Checks if the player has a warmup pending.- Returns:
- true if warming up
-