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 Summary
-
Enum Constant Summary
Enum ConstantDescriptionMergesStyle.color()
.MergesStyle.decorations()
.MergesStyle.clickEvent()
andStyle.hoverEvent()
.MergesStyle.font()
.MergesStyle.insertion()
.MergesStyleGetter.shadowColor()
. -
Method Summary
Modifier 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 containingCOLOR
andDECORATIONS
.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.Merge
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
-
SHADOW_COLOR
MergesStyleGetter.shadowColor()
.- Since:
- 4.18.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
-
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.