public static enum Team.CollisionRule extends java.lang.Enum<Team.CollisionRule>
Enum Constant and Description |
---|
ALWAYS |
NEVER |
PUSH_OTHER_TEAMS |
PUSH_OWN_TEAM |
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) |
ITextComponent |
getDisplayName() |
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 PUSH_OTHER_TEAMS
public static final Team.CollisionRule PUSH_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 null@Nullable public static Team.CollisionRule getByName(java.lang.String nameIn)
public ITextComponent getDisplayName()