Enum AbstractTeam.CollisionRule
java.lang.Object
java.lang.Enum<AbstractTeam.CollisionRule>
net.citizensnpcs.trait.scoreboard.AbstractTeam.CollisionRule
- All Implemented Interfaces:
Serializable, Comparable<AbstractTeam.CollisionRule>, java.lang.constant.Constable, AbstractTeam.TeamOption<net.megavex.scoreboardlibrary.api.team.enums.CollisionRule>
- Enclosing interface:
AbstractTeam
public static enum AbstractTeam.CollisionRule
extends Enum<AbstractTeam.CollisionRule>
implements AbstractTeam.TeamOption<net.megavex.scoreboardlibrary.api.team.enums.CollisionRule>
Enum representing collision rule options.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractTeam.CollisionRulefromBukkit(Team.OptionStatus value) static AbstractTeam.CollisionRulefromPacket(net.megavex.scoreboardlibrary.api.team.enums.CollisionRule value) Gets the Bukkit value of this option.net.megavex.scoreboardlibrary.api.team.enums.CollisionRuleGets the packet-based (folia) value of this option.static AbstractTeam.CollisionRuleReturns 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.
-
Enum Constant Details
-
ALWAYS
-
NEVER
-
PUSH_OTHER_TEAMS
-
PUSH_OWN_TEAM
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getFoliaValue
public net.megavex.scoreboardlibrary.api.team.enums.CollisionRule getFoliaValue()Gets the packet-based (folia) value of this option.- Specified by:
getFoliaValuein interfaceAbstractTeam.TeamOption<net.megavex.scoreboardlibrary.api.team.enums.CollisionRule>- Returns:
- The packet-based (folia) value of this option.
-
getBukkitValue
Gets the Bukkit value of this option.- Specified by:
getBukkitValuein interfaceAbstractTeam.TeamOption<net.megavex.scoreboardlibrary.api.team.enums.CollisionRule>- Returns:
- The Bukkit value of this option.
-
fromPacket
public static AbstractTeam.CollisionRule fromPacket(net.megavex.scoreboardlibrary.api.team.enums.CollisionRule value) - See Also:
-
fromBukkit
- See Also:
-