Enum Class TeamsPacket.CollisionRule
java.lang.Object
java.lang.Enum<TeamsPacket.CollisionRule>
net.minestom.server.network.packet.server.play.TeamsPacket.CollisionRule
- All Implemented Interfaces:
Serializable
,Comparable<TeamsPacket.CollisionRule>
,Constable
- Enclosing class:
TeamsPacket
An enumeration which representing all rules for the collision
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCan push all objects and can be pushed by all objectsCannot push an object, but neither can they be pushedCan push objects of other teams, but teammates cannotCan only push objects of the same team -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TeamsPacket.CollisionRule
fromIdentifier
(String identifier) @NotNull String
Gets the identifier of the rulestatic TeamsPacket.CollisionRule
Returns the enum constant of this class with the specified name.static TeamsPacket.CollisionRule[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Can push all objects and can be pushed by all objects -
PUSH_OTHER_TEAMS
Can push objects of other teams, but teammates cannot -
PUSH_OWN_TEAM
Can only push objects of the same team -
NEVER
Cannot push an object, but neither can they be pushed
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromIdentifier
-
getIdentifier
Gets the identifier of the rule- Returns:
- the identifier
-