Package net.md_5.bungee.api.chat
Enum ComponentBuilder.FormatRetention
java.lang.Object
java.lang.Enum<ComponentBuilder.FormatRetention>
net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention
- All Implemented Interfaces:
Serializable
,Comparable<ComponentBuilder.FormatRetention>
- Enclosing class:
- ComponentBuilder
-
Enum Constant Summary
Enum ConstantDescriptionSpecify that we want to retain everything from the previous component.Specify that we want the events retained from the previous component.Specify that we want the formatting retained from the previous component.Specify that we do not want to retain anything from the previous component. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static ComponentBuilder.FormatRetention[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Specify that we do not want to retain anything from the previous component. -
FORMATTING
Specify that we want the formatting retained from the previous component. -
EVENTS
Specify that we want the events retained from the previous component. -
ALL
Specify that we want to retain everything from the previous component.
-
-
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
-