Package net.md_5.bungee.protocol.packet
Enum Team.CollisionRule
- java.lang.Object
-
- java.lang.Enum<Team.CollisionRule>
-
- net.md_5.bungee.protocol.packet.Team.CollisionRule
-
- All Implemented Interfaces:
Serializable,Comparable<Team.CollisionRule>
- Enclosing class:
- Team
public static enum Team.CollisionRule extends Enum<Team.CollisionRule>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYSNEVERPUSH_OTHER_TEAMSPUSH_OWN_TEAM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKey()static Team.CollisionRulevalueOf(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.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final Team.CollisionRule ALWAYS
-
NEVER
public static final Team.CollisionRule NEVER
-
PUSH_OTHER_TEAMS
public static final Team.CollisionRule PUSH_OTHER_TEAMS
-
PUSH_OWN_TEAM
public static final Team.CollisionRule PUSH_OWN_TEAM
-
-
Method Detail
-
values
public static Team.CollisionRule[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Team.CollisionRule c : Team.CollisionRule.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Team.CollisionRule valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getKey
public String getKey()
-
-