Sc2ApiSerializable<SC2APIProtocol.Common.Race>
, java.io.Serializable
, java.lang.Comparable<Race>
public enum Race extends java.lang.Enum<Race> implements Sc2ApiSerializable<SC2APIProtocol.Common.Race>
Modifier and Type | Method | Description |
---|---|---|
static Race |
forName(java.lang.String raceName) |
|
static Race |
from(SC2APIProtocol.Common.Race sc2ApiRace) |
|
SC2APIProtocol.Common.Race |
toSc2Api() |
|
static Race |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Race[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Race NO_RACE
public static final Race TERRAN
public static final Race ZERG
public static final Race PROTOSS
public static final Race RANDOM
public static Race[] values()
for (Race c : Race.values()) System.out.println(c);
public static Race 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.Common.Race toSc2Api()
toSc2Api
in interface Sc2ApiSerializable<SC2APIProtocol.Common.Race>
public static Race from(SC2APIProtocol.Common.Race sc2ApiRace)
public static Race forName(java.lang.String raceName)
Copyright © 2017–2018 Ocraft Project. All rights reserved.