Package com.epicbot.api.shared.model
Enum Class WorldType
- All Implemented Interfaces:
Serializable,Comparable<WorldType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBeta world.Bounty world type.Deadman world type.Fresh start world typeHigh risk world type.Last man standing world type.Members world type.Beta worlds without profiles that are saved.Pvp world type.PVP arena world type.Quest speedrunningSeasonal world type for leagues and seasonal deadman.Skill total world type.Tournament world type -
Method Summary
Modifier and TypeMethodDescriptionfromMask(int mask) Create enum set of world types from mask.static booleanisPvpWorld(Collection<WorldType> worldTypes) Checks whether a world having aCollectionofWorldTypes is a PVP world.static intCreate mask from enum set of world types.static WorldTypeReturns the enum constant of this class with the specified name.static WorldType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MEMBERS
Members world type. -
PVP
Pvp world type. -
BOUNTY
Bounty world type. -
PVP_ARENA
PVP arena world type. -
SKILL_TOTAL
Skill total world type. -
QUEST_SPEEDRUNNING
Quest speedrunning -
HIGH_RISK
High risk world type. -
LAST_MAN_STANDING
Last man standing world type. -
BETA_WORLD
Beta world. -
LEGACY_ONLY
-
EOC_ONLY
-
NOSAVE_MODE
Beta worlds without profiles that are saved. -
TOURNAMENT_WORLD
Tournament world type -
FRESH_START_WORLD
Fresh start world type -
DEADMAN
Deadman world type. -
SEASONAL
Seasonal world type for leagues and seasonal deadman.
-
-
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
-
fromMask
Create enum set of world types from mask.- Parameters:
mask- the mask- Returns:
- the enum set
-
toMask
Create mask from enum set of world types.- Parameters:
types- the types- Returns:
- the int containing all mask
-
isPvpWorld
Checks whether a world having aCollectionofWorldTypes is a PVP world.- Parameters:
worldTypes- ACollectionofWorldTypes describing the given world.- Returns:
- True if the given worldtypes of the world are a PVP world, false otherwise.
-