Package net.kyori.adventure.text.format
Enum Style.Merge
- All Implemented Interfaces:
- Serializable,- Comparable<Style.Merge>
- Enclosing interface:
- Style
A merge choice.
- Since:
- 4.0.0
- 
Nested Class SummaryNested Classes
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionMergesStyle.color().MergesStyle.decorations().MergesStyle.clickEvent()andStyle.hoverEvent().MergesStyle.font().MergesStyle.insertion().MergesStyleGetter.shadowColor().
- 
Method SummaryModifier and TypeMethodDescriptionstatic @Unmodifiable @NotNull Set<Style.Merge>all()Gets a merge set of all merge types.static @Unmodifiable @NotNull Set<Style.Merge>Gets a merge set containingCOLORandDECORATIONS.static @Unmodifiable @NotNull Set<Style.Merge>merges(Style.Merge @NotNull ... merges) Creates a merge set.static @Unmodifiable @NotNull Set<Style.Merge>of(Style.Merge @NotNull ... merges) Deprecated.static Style.MergeReturns 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
 
- 
SHADOW_COLORMergesStyleGetter.shadowColor().- Since:
- 4.18.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
 
- 
merges@NotNull public static @Unmodifiable @NotNull Set<Style.Merge> merges(Style.Merge @NotNull ... merges) Creates a merge set.- Parameters:
- merges- the merge parts
- Returns:
- a merge set
- Since:
- 4.10.0
 
- 
of@Deprecated @ScheduledForRemoval(inVersion="5.0.0") @NotNull public static @Unmodifiable @NotNull Set<Style.Merge> of(Style.Merge @NotNull ... merges) Deprecated.for removal since 4.10.0, usemerges(Style.Merge...)instead.Creates a merge set.- Parameters:
- merges- the merge parts
- Returns:
- a merge set
- Since:
- 4.0.0
 
 
- 
merges(Style.Merge...)instead.