public enum WorldType extends Enum<WorldType>
Enum Constant and Description |
---|
BOUNTY
Bounty world type.
|
DEADMAN
Deadman world type.
|
HIGH_RISK
High risk world type.
|
LAST_MAN_STANDING
Last man standing world type.
|
LEAGUE
League world type
|
MEMBERS
Members world type.
|
PVP
Pvp world type.
|
SKILL_TOTAL
Skill total world type.
|
TOURNAMENT
Tournament world type.
|
Modifier and Type | Method and Description |
---|---|
static EnumSet<WorldType> |
fromMask(int mask)
Create enum set of world types from mask.
|
static boolean |
isPvpWorld(Collection<WorldType> worldTypes)
Checks whether a world having a
Collection of WorldType s is a PVP world. |
static int |
toMask(EnumSet<WorldType> types)
Create mask from enum set of world types.
|
static WorldType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WorldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorldType MEMBERS
public static final WorldType PVP
public static final WorldType BOUNTY
public static final WorldType SKILL_TOTAL
public static final WorldType HIGH_RISK
public static final WorldType LAST_MAN_STANDING
public static final WorldType TOURNAMENT
public static final WorldType DEADMAN
public static final WorldType LEAGUE
public static WorldType[] values()
for (WorldType c : WorldType.values()) System.out.println(c);
public static WorldType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static EnumSet<WorldType> fromMask(int mask)
mask
- the maskpublic static int toMask(EnumSet<WorldType> types)
types
- the typespublic static boolean isPvpWorld(Collection<WorldType> worldTypes)
Collection
of WorldType
s is a PVP world.worldTypes
- A Collection
of WorldType
s describing the given world.Client.getWorldType()
Copyright © 2014–2019. All rights reserved.