Class AbilityCooldownException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.woftnw.eof.exception.AbilityActivationException
org.woftnw.eof.exception.AbilityCooldownException
- All Implemented Interfaces:
Serializable
This exception is thrown when an ability is attempted to be activated while on cooldown.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbilityCooldownException(long cooldownTimeEnds) Create an AbilityCooldownException. -
Method Summary
Modifier and TypeMethodDescriptionlongGet the game time at which the cooldown will end.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AbilityCooldownException
public AbilityCooldownException(long cooldownTimeEnds) Create an AbilityCooldownException.- Parameters:
cooldownTimeEnds- The game time at which the cooldown will end.
-
-
Method Details
-
getCooldownTimeLeft
public long getCooldownTimeLeft()Get the game time at which the cooldown will end.- Returns:
- The game time at which the cooldown will end.
-