Sc2ApiSerializable<SC2APIProtocol.Sc2Api.Difficulty>
, java.io.Serializable
, java.lang.Comparable<Difficulty>
public enum Difficulty extends java.lang.Enum<Difficulty> implements Sc2ApiSerializable<SC2APIProtocol.Sc2Api.Difficulty>
Enum Constant | Description |
---|---|
CHEAT_INSANE |
|
CHEAT_MONEY |
|
CHEAT_VISION |
|
EASY |
|
HARD |
|
HARDER |
|
MEDIUM |
|
MEDIUM_HARD |
|
VERY_EASY |
|
VERY_HARD |
Modifier and Type | Method | Description |
---|---|---|
static Difficulty |
forName(java.lang.String difficultyName) |
|
static Difficulty |
from(SC2APIProtocol.Sc2Api.Difficulty sc2ApiDifficulty) |
|
SC2APIProtocol.Sc2Api.Difficulty |
toSc2Api() |
|
static Difficulty |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Difficulty[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Difficulty VERY_EASY
public static final Difficulty EASY
public static final Difficulty MEDIUM
public static final Difficulty MEDIUM_HARD
public static final Difficulty HARD
public static final Difficulty HARDER
public static final Difficulty VERY_HARD
public static final Difficulty CHEAT_VISION
public static final Difficulty CHEAT_MONEY
public static final Difficulty CHEAT_INSANE
public static Difficulty[] values()
for (Difficulty c : Difficulty.values()) System.out.println(c);
public static Difficulty valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic SC2APIProtocol.Sc2Api.Difficulty toSc2Api()
toSc2Api
in interface Sc2ApiSerializable<SC2APIProtocol.Sc2Api.Difficulty>
public static Difficulty from(SC2APIProtocol.Sc2Api.Difficulty sc2ApiDifficulty)
public static Difficulty forName(java.lang.String difficultyName)
Copyright © 2017–2018 Ocraft Project. All rights reserved.