Package net.kyori.adventure.text.format
Enum Style.Merge
- java.lang.Object
-
- java.lang.Enum<Style.Merge>
-
- net.kyori.adventure.text.format.Style.Merge
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Style.Merge>
- Enclosing interface:
- Style
public static enum Style.Merge extends java.lang.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
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static @Unmodifiable @NotNull java.util.Set<Style.Merge>
all()
Gets a merge set of all merge types.static @Unmodifiable @NotNull java.util.Set<Style.Merge>
colorAndDecorations()
Gets a merge set containingCOLOR
andDECORATIONS
.static @Unmodifiable @NotNull java.util.Set<Style.Merge>
merges(Style.Merge @NotNull ... merges)
Creates a merge set.static @Unmodifiable @NotNull java.util.Set<Style.Merge>
of(Style.Merge @NotNull ... merges)
Deprecated.for removal since 4.10.0, usemerges(Style.Merge...)
instead.static Style.Merge
valueOf(java.lang.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 Detail
-
COLOR
public static final Style.Merge COLOR
MergesStyle.color()
.- Since:
- 4.0.0
-
DECORATIONS
public static final Style.Merge DECORATIONS
MergesStyle.decorations()
.- Since:
- 4.0.0
-
EVENTS
public static final Style.Merge EVENTS
MergesStyle.clickEvent()
andStyle.hoverEvent()
.- Since:
- 4.0.0
-
INSERTION
public static final Style.Merge INSERTION
MergesStyle.insertion()
.- Since:
- 4.0.0
-
FONT
public static final Style.Merge FONT
MergesStyle.font()
.- Since:
- 4.0.0
-
-
Method Detail
-
values
public static Style.Merge[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Style.Merge c : Style.Merge.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Style.Merge valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
all
@NotNull public static @Unmodifiable @NotNull java.util.Set<Style.Merge> all()
Gets a merge set of all merge types.- Returns:
- a merge set
- Since:
- 4.0.0
-
colorAndDecorations
@NotNull public static @Unmodifiable @NotNull java.util.Set<Style.Merge> colorAndDecorations()
Gets a merge set containingCOLOR
andDECORATIONS
.- Returns:
- a merge set
- Since:
- 4.0.0
-
merges
@NotNull public static @Unmodifiable @NotNull java.util.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 java.util.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
-
-