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