Enum Class TeamsPacket.NameTagVisibility
java.lang.Object
java.lang.Enum<TeamsPacket.NameTagVisibility>
net.minestom.server.network.packet.server.play.TeamsPacket.NameTagVisibility
- All Implemented Interfaces:
Serializable
,Comparable<TeamsPacket.NameTagVisibility>
,Constable
- Enclosing class:
TeamsPacket
An enumeration which representing all visibility states for the name tags
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe name tag is visibleHides the name tag for other teamsHides the name tag for the own teamThe name tag is invisible -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TeamsPacket.NameTagVisibility
fromIdentifier
(String identifier) @NotNull String
Gets the client identifierReturns the enum constant of this class with the specified name.static TeamsPacket.NameTagVisibility[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
The name tag is visible -
NEVER
The name tag is invisible -
HIDE_FOR_OTHER_TEAMS
Hides the name tag for other teams -
HIDE_FOR_OWN_TEAM
Hides the name tag for the own team
-
-
Field Details
-
NETWORK_TYPE
-
-
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
-