Package net.luckperms.api.node
Enum ChatMetaType
- java.lang.Object
-
- java.lang.Enum<ChatMetaType>
-
- net.luckperms.api.node.ChatMetaType
-
- All Implemented Interfaces:
Serializable,Comparable<ChatMetaType>
public enum ChatMetaType extends Enum<ChatMetaType>
Represents a type of chat meta
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract @NonNull ChatMetaNode.Builder<?,?>builder()Creates aChatMetaNode.Builderfor theChatMetaType.abstract @NonNull ChatMetaNode.Builder<?,?>builder(@NonNull String value, int priority)Creates aChatMetaNode.Builderfor theChatMetaType.@NonNull NodeType<? extends ChatMetaNode<?,?>>nodeType()Gets theNodeTypefor theChatMetaType.StringtoString()static ChatMetaTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ChatMetaType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREFIX
public static final ChatMetaType PREFIX
Represents a prefix
-
SUFFIX
public static final ChatMetaType SUFFIX
Represents a suffix
-
-
Method Detail
-
values
public static ChatMetaType[] 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 (ChatMetaType c : ChatMetaType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChatMetaType 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
-
nodeType
public @NonNull NodeType<? extends ChatMetaNode<?,?>> nodeType()
Gets theNodeTypefor theChatMetaType.- Returns:
- the node type
-
builder
public abstract @NonNull ChatMetaNode.Builder<?,?> builder()
Creates aChatMetaNode.Builderfor theChatMetaType.- Returns:
- a builder
-
builder
public abstract @NonNull ChatMetaNode.Builder<?,?> builder(@NonNull String value, int priority)
Creates aChatMetaNode.Builderfor theChatMetaType.- Parameters:
value- the value to setpriority- the priority to set- Returns:
- a builder
-
toString
public String toString()
- Overrides:
toStringin classEnum<ChatMetaType>
-
-