public static enum Team.CollisionRule extends java.lang.Enum<Team.CollisionRule>
Enum Constant and Description |
---|
ALWAYS |
HIDE_FOR_OTHER_TEAMS |
HIDE_FOR_OWN_TEAM |
NEVER |
Modifier and Type | Field and Description |
---|---|
int |
id |
java.lang.String |
name |
private static java.util.Map<java.lang.String,Team.CollisionRule> |
nameMap |
Modifier and Type | Method and Description |
---|---|
static Team.CollisionRule |
getByName(java.lang.String nameIn) |
static java.lang.String[] |
getNames() |
static Team.CollisionRule |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Team.CollisionRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Team.CollisionRule ALWAYS
public static final Team.CollisionRule NEVER
public static final Team.CollisionRule HIDE_FOR_OTHER_TEAMS
public static final Team.CollisionRule HIDE_FOR_OWN_TEAM
private static final java.util.Map<java.lang.String,Team.CollisionRule> nameMap
public final java.lang.String name
public final int id
public static Team.CollisionRule[] values()
for (Team.CollisionRule c : Team.CollisionRule.values()) System.out.println(c);
public static Team.CollisionRule 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 static java.lang.String[] getNames()
@Nullable public static Team.CollisionRule getByName(java.lang.String nameIn)