Enum ArenaSelectorType
- All Implemented Interfaces:
- Serializable,- Comparable<ArenaSelectorType>,- java.lang.constant.Constable
The type of a selector. Diffferentiate between default and custom ones.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescription@Nullable ArenaSelectorReturns the effective logic object of the given type.static ArenaSelectorTypeReturns the enum constant of this type with the specified name.static ArenaSelectorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
RANDOMChooses a completely random arena
- 
BEST1. Filters out all full arenas
 2. Searches for the one with the most players
 3. Decides for a random one case there are multiple with the equal amount of players
- 
BEST_PREFER_NON_VOTINGFirstly tries to look for a voting arena, then alternatively executesBEST
- 
BEST_PREFER_RUNNINGFirstly tries to look for a running arena, then alternatively executesBEST
- 
PLUGINAll custom added selectors have this type
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getInstanceReturns the effective logic object of the given type.May also return nullin case the plugin has not been initialized yet.- Returns:
- The logic object. nullin case it'sPLUGIN.
 
 
-