Enum Class ScenarioVoteResult
- All Implemented Interfaces:
Serializable,Comparable<ScenarioVoteResult>,Constable
The outcome of asking Zentrix to cast, change or clear a vote.
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe vote was recorded.The player already voted for this scenario and changes are disabled.An addon cancelled the vote through the vote event.The player used up their vote limit.The scenario is not in this match's eligible pool.The player is not in this match.Voting is not open for this match.The vote was taken back. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the vote actually changed anything.@NotNull Stringkey()static ScenarioVoteResultReturns the enum constant of this class with the specified name.static ScenarioVoteResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCEPTED
The vote was recorded. -
WITHDRAWN
The vote was taken back. -
ALREADY_VOTED
The player already voted for this scenario and changes are disabled. -
LIMIT_REACHED
The player used up their vote limit. -
NOT_RUNNING
Voting is not open for this match. -
NOT_ELIGIBLE
The scenario is not in this match's eligible pool. -
NOT_IN_GAME
The player is not in this match. -
CANCELLED
An addon cancelled the vote through the vote event.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isSuccess
public boolean isSuccess()Whether the vote actually changed anything. -
key
-