Package net.kyori.adventure.text.format
Enum Style.Merge
- All Implemented Interfaces:
Serializable
,Comparable<Style.Merge>
- Enclosing interface:
- Style
public static enum Style.Merge extends Enum<Style.Merge>
A merge choice.
- Since:
- 4.0.0
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Style.Merge.Strategy
A merge strategy. -
Enum Constant Summary
Enum Constants Enum Constant Description COLOR
MergesStyle.color()
.DECORATIONS
MergesStyle.decorations()
.EVENTS
MergesStyle.clickEvent()
andStyle.hoverEvent()
.FONT
MergesStyle.font()
.INSERTION
MergesStyle.insertion()
. -
Method Summary
Modifier and Type Method Description static @Unmodifiable @NonNull Set<Style.Merge>
all()
Gets a merge set of all merge types.static @Unmodifiable @NonNull Set<Style.Merge>
colorAndDecorations()
Gets a merge set containingCOLOR
andDECORATIONS
.static @Unmodifiable @NonNull Set<Style.Merge>
of(Style.Merge @NonNull ... merges)
Creates a merge set.static Style.Merge
valueOf(String name)
Returns the enum constant of this type with the specified name.static Style.Merge[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COLOR
MergesStyle.color()
.- Since:
- 4.0.0
-
DECORATIONS
MergesStyle.decorations()
.- Since:
- 4.0.0
-
EVENTS
MergesStyle.clickEvent()
andStyle.hoverEvent()
.- Since:
- 4.0.0
-
INSERTION
MergesStyle.insertion()
.- Since:
- 4.0.0
-
FONT
MergesStyle.font()
.- 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
-
all
Gets a merge set of all merge types.- Returns:
- a merge set
- Since:
- 4.0.0
-
colorAndDecorations
Gets a merge set containingCOLOR
andDECORATIONS
.- Returns:
- a merge set
- Since:
- 4.0.0
-
of
Creates a merge set.- Parameters:
merges
- the merge parts- Returns:
- a merge set
- Since:
- 4.0.0
-