public static enum AbstractTeam.CollisionRule extends Enum<AbstractTeam.CollisionRule>
Enum Constant and Description |
---|
ALWAYS |
NEVER |
PUSH_OTHER_TEAMS |
PUSH_OWN_TEAM |
Modifier and Type | Field and Description |
---|---|
private static Map<String,AbstractTeam.CollisionRule> |
COLLISION_RULES |
String |
name |
int |
value |
Modifier and Type | Method and Description |
---|---|
static AbstractTeam.CollisionRule |
getRule(String name) |
Text |
getTranslationKey() |
static AbstractTeam.CollisionRule |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractTeam.CollisionRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractTeam.CollisionRule ALWAYS
public static final AbstractTeam.CollisionRule NEVER
public static final AbstractTeam.CollisionRule PUSH_OTHER_TEAMS
public static final AbstractTeam.CollisionRule PUSH_OWN_TEAM
private static final Map<String,AbstractTeam.CollisionRule> COLLISION_RULES
public final String name
public final int value
public static AbstractTeam.CollisionRule[] values()
for (AbstractTeam.CollisionRule c : AbstractTeam.CollisionRule.values()) System.out.println(c);
public static AbstractTeam.CollisionRule 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 null@Nullable public static AbstractTeam.CollisionRule getRule(String name)
public Text getTranslationKey()