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 SummaryNested Classes Modifier and Type Class Description static classStyle.Merge.StrategyA merge strategy.
- 
Enum Constant SummaryEnum Constants Enum Constant Description COLORMergesStyle.color().DECORATIONSMergesStyle.decorations().EVENTSMergesStyle.clickEvent()andStyle.hoverEvent().FONTMergesStyle.font().INSERTIONMergesStyle.insertion().
- 
Method SummaryModifier and Type Method Description static @NonNull Set<Style.Merge>all()Gets a merge set of all merge types.static @NonNull Set<Style.Merge>colorAndDecorations()Gets a merge set containingCOLORandDECORATIONS.static @NonNull Set<Style.Merge>of(Style.Merge @NonNull ... merges)Creates a merge set.static Style.MergevalueOf(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- 
COLORMergesStyle.color().- Since:
- 4.0.0
 
- 
DECORATIONSMergesStyle.decorations().- Since:
- 4.0.0
 
- 
EVENTSMergesStyle.clickEvent()andStyle.hoverEvent().- Since:
- 4.0.0
 
- 
INSERTIONMergesStyle.insertion().- Since:
- 4.0.0
 
- 
FONTMergesStyle.font().- Since:
- 4.0.0
 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
allGets a merge set of all merge types.- Returns:
- a merge set
- Since:
- 4.0.0
 
- 
colorAndDecorationsGets a merge set containingCOLORandDECORATIONS.- Returns:
- a merge set
- Since:
- 4.0.0
 
- 
ofCreates a merge set.- Parameters:
- merges- the merge parts
- Returns:
- a merge set
- Since:
- 4.0.0
 
 
-