Package net.kyori.adventure.text
Enum PatternReplacementResult
- All Implemented Interfaces:
Serializable
,Comparable<PatternReplacementResult>
A result for
Component.replaceText(TextReplacementConfig)
pattern-based replacements}.- Since:
- 4.0.0
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PatternReplacementResult
Returns the enum constant of this type with the specified name.static PatternReplacementResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REPLACE
Replace the current match.- Since:
- 4.0.0
-
CONTINUE
Skip the current match, but continue searching for others.- Since:
- 4.0.0
-
STOP
Stop matching.- Since:
- 4.0.0
-
-
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
-